1 #ifndef __ADF_OS_PCI_PVT_H
2 #define __ADF_OS_PCI_PVT_H
6 //extern A_PCI_INIT_FUNC g_pci_init_func;
11 #define __adf_os_pci_module_init(_fn) A_PCI_INIT_FUNC g_pci_init_func = _fn;
16 #define __adf_os_pci_module_exit(_fn)
19 * initiallize the PCI driver structure
20 * Instance name will be <name>_pci_info
22 #define __adf_os_pci_set_drv_info(_name, _pci_ids, _attach, _detach, _suspend, _resume) \
28 ADF_OS_BUS_TYPE_PCI, \
34 * XXX: pci functions undone
42 __adf_os_pci_config_read8(adf_os_device_t osdev, int offset, a_uint8_t *val)
44 (*val) = wlan_pci_config_read(offset, 1);
47 * XXX:how do we know the read succeded
52 __adf_os_pci_config_write8(adf_os_device_t osdev, int offset, a_uint8_t val)
54 wlan_pci_config_write(offset, val, 1);
59 __adf_os_pci_config_read16(adf_os_device_t osdev, int offset, a_uint16_t *val)
61 (*val) = wlan_pci_config_read(offset, 2);
66 __adf_os_pci_config_write16(adf_os_device_t osdev, int offset, a_uint16_t val)
68 wlan_pci_config_write(offset, val, 2);
73 __adf_os_pci_config_read32(adf_os_device_t osdev, int offset, a_uint32_t *val)
75 (*val) = wlan_pci_config_read(offset, 4);
80 __adf_os_pci_config_write32(adf_os_device_t osdev, int offset, a_uint32_t val)
82 wlan_pci_config_write(offset, val, 4);