|
Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
| #define | DE600_IO 0x378 |
| #define | DATA_PORT (DE600_IO) |
| #define | STATUS_PORT (DE600_IO + 1) |
| #define | COMMAND_PORT (DE600_IO + 2) |
| #define | DE600_IRQ 7 |
| #define | SELECT_NIC 0x04 /* select Network Interface Card */ |
| #define | SELECT_PRN 0x1c /* select Printer */ |
| #define | NML_PRN 0xec /* normal Printer situation */ |
| #define | IRQEN 0x10 /* enable IRQ line */ |
| #define | RX_BUSY 0x80 |
| #define | RX_GOOD 0x40 |
| #define | TX_FAILED16 0x10 |
| #define | TX_BUSY 0x08 |
| #define | WRITE_DATA 0x00 /* write memory */ |
| #define | READ_DATA 0x01 /* read memory */ |
| #define | STATUS 0x02 /* read status register */ |
| #define | COMMAND 0x03 /* write command register (see COMMAND below) */ |
| #define | NULL_COMMAND 0x04 /* null command */ |
| #define | RX_LEN 0x05 /* read received packet length */ |
| #define | TX_ADDR 0x06 /* set adapter transmit memory address */ |
| #define | RW_ADDR 0x07 /* set adapter read/write memory address */ |
| #define | HI_NIBBLE |
| #define | RX_ALL 0x01 /* PROMISCUOUS */ |
| #define | RX_BP 0x02 /* default: BROADCAST & PHYSICAL ADDRESS */ |
| #define | RX_MBP 0x03 /* MULTICAST, BROADCAST & PHYSICAL ADDRESS */ |
| #define | TX_ENABLE 0x04 /* bit 2 */ |
| #define | RX_ENABLE 0x08 /* bit 3 */ |
| #define | RESET 0x80 /* set bit 7 high */ |
| #define | STOP_RESET 0x00 /* set bit 7 low */ |
| #define | RX_PAGE2_SELECT 0x10 /* bit 4, only 2 pages to select */ |
| #define | RX_BASE_PAGE 0x20 /* bit 5, always set when specifying RX_ADDR */ |
| #define | FLIP_IRQ 0x40 /* bit 6 */ |
| #define | MEM_2K 0x0800 /* 2048 */ |
| #define | MEM_4K 0x1000 /* 4096 */ |
| #define | MEM_6K 0x1800 /* 6144 */ |
| #define | NODE_ADDRESS 0x2000 /* 8192 */ |
| #define | RUNT 60 /* Too small Ethernet packet */ |
| #define | select_prn() outb_p(SELECT_PRN, COMMAND_PORT); DE600_SLOW_DOWN |
| #define | select_nic() outb_p(SELECT_NIC, COMMAND_PORT); DE600_SLOW_DOWN |
| #define | de600_put_byte(data) |
| #define | de600_put_command(cmd) |
| #define | de600_setup_address(addr, type) |
| #define | rx_page_adr() ((rx_page & RX_PAGE2_SELECT)?(MEM_6K):(MEM_4K)) |
| #define | next_rx_page() (rx_page ^= RX_PAGE2_SELECT) |
| #define | tx_page_adr(a) (((a) + 1) * MEM_2K) |
| #define COMMAND 0x03 /* write command register (see COMMAND below) */ |
| #define de600_put_byte | ( | data | ) |
| #define de600_put_command | ( | cmd | ) |
| #define HI_NIBBLE |
| #define next_rx_page | ( | ) | (rx_page ^= RX_PAGE2_SELECT) |
| #define RW_ADDR 0x07 /* set adapter read/write memory address */ |
| #define RX_BASE_PAGE 0x20 /* bit 5, always set when specifying RX_ADDR */ |
| #define RX_BP 0x02 /* default: BROADCAST & PHYSICAL ADDRESS */ |
| #define RX_MBP 0x03 /* MULTICAST, BROADCAST & PHYSICAL ADDRESS */ |
| #define RX_PAGE2_SELECT 0x10 /* bit 4, only 2 pages to select */ |
| #define rx_page_adr | ( | ) | ((rx_page & RX_PAGE2_SELECT)?(MEM_6K):(MEM_4K)) |
| #define select_nic | ( | ) | outb_p(SELECT_NIC, COMMAND_PORT); DE600_SLOW_DOWN |
| #define select_prn | ( | ) | outb_p(SELECT_PRN, COMMAND_PORT); DE600_SLOW_DOWN |
| #define TX_ADDR 0x06 /* set adapter transmit memory address */ |
1.8.2