Skip to content

Commit

Permalink
Remove compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vinc committed Jul 11, 2024
1 parent 5ef2926 commit 72b3a96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/sys/net/nic/pcnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ const DE_OWN: usize = 7;
#[derive(Clone)]
pub struct Ports {
pub mac: [Port<u8>; 6],
pub rdp_16: Port<u16>,
pub rap_16: Port<u16>,
//pub rdp_16: Port<u16>,
//pub rap_16: Port<u16>,
pub rst_16: Port<u16>,
pub bdp_16: Port<u16>,
//pub bdp_16: Port<u16>,

pub rdp_32: Port<u32>,
pub rap_32: Port<u32>,
Expand All @@ -61,10 +61,10 @@ impl Ports {
Port::new(io_base + 0x05),
],

rdp_16: Port::new(io_base + 0x10),
rap_16: Port::new(io_base + 0x12),
//rdp_16: Port::new(io_base + 0x10),
//rap_16: Port::new(io_base + 0x12),
rst_16: Port::new(io_base + 0x14),
bdp_16: Port::new(io_base + 0x16),
//bdp_16: Port::new(io_base + 0x16),

rdp_32: Port::new(io_base + 0x10),
rap_32: Port::new(io_base + 0x14),
Expand Down
8 changes: 4 additions & 4 deletions src/sys/net/nic/rtl8139.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ pub struct Ports {
pub cmd: Port<u8>,

// Interrupt Mask Register (IMR)
pub imr: Port<u16>,
//pub imr: Port<u16>,

// Interrupt Status Register (ISR)
pub isr: Port<u16>,
//pub isr: Port<u16>,

// Transmit (Tx) Configuration Register (TCR)
pub tx_config: Port<u32>,
Expand Down Expand Up @@ -138,8 +138,8 @@ impl Ports {
capr: Port::new(io_base + 0x38),
cba: Port::new(io_base + 0x3A),
cmd: Port::new(io_base + 0x37),
imr: Port::new(io_base + 0x3C),
isr: Port::new(io_base + 0x3E),
//imr: Port::new(io_base + 0x3C),
//isr: Port::new(io_base + 0x3E),
tx_config: Port::new(io_base + 0x40),
rx_config: Port::new(io_base + 0x44),
}
Expand Down

0 comments on commit 72b3a96

Please sign in to comment.