Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/e1000_osdep.h
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
struct e1000_osdep | struct e1000_osdep | ||||
{ | { | ||||
bus_space_tag_t mem_bus_space_tag; | bus_space_tag_t mem_bus_space_tag; | ||||
bus_space_handle_t mem_bus_space_handle; | bus_space_handle_t mem_bus_space_handle; | ||||
bus_space_tag_t io_bus_space_tag; | bus_space_tag_t io_bus_space_tag; | ||||
bus_space_handle_t io_bus_space_handle; | bus_space_handle_t io_bus_space_handle; | ||||
bus_space_tag_t flash_bus_space_tag; | bus_space_tag_t flash_bus_space_tag; | ||||
bus_space_handle_t flash_bus_space_handle; | bus_space_handle_t flash_bus_space_handle; | ||||
struct device *dev; | device_t dev; | ||||
}; | }; | ||||
#define E1000_REGISTER(hw, reg) (((hw)->mac.type >= e1000_82543) \ | #define E1000_REGISTER(hw, reg) (((hw)->mac.type >= e1000_82543) \ | ||||
? reg : e1000_translate_register_82542(reg)) | ? reg : e1000_translate_register_82542(reg)) | ||||
#define E1000_WRITE_FLUSH(a) E1000_READ_REG(a, E1000_STATUS) | #define E1000_WRITE_FLUSH(a) E1000_READ_REG(a, E1000_STATUS) | ||||
/* Read from an absolute offset in the adapter's memory space */ | /* Read from an absolute offset in the adapter's memory space */ | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |