Changes in uspace/drv/pciintel/pci.c [99e6bfb:ad6857c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/pciintel/pci.c
r99e6bfb rad6857c 59 59 #include <ddi.h> 60 60 #include <libarch/ddi.h> 61 #include <pci_dev_iface.h>62 61 63 62 #include "pci.h" … … 122 121 } 123 122 124 static int pci_config_space_write_16(ddf_fun_t *fun, uint32_t address, uint16_t data)125 {126 if (address > 254)127 return EINVAL;128 pci_conf_write_16(PCI_FUN(fun), address, data);129 return EOK;130 }131 132 133 123 static hw_res_ops_t pciintel_hw_res_ops = { 134 124 &pciintel_get_resources, … … 136 126 }; 137 127 138 static pci_dev_iface_t pci_dev_ops = { 139 .config_space_read_8 = NULL, 140 .config_space_read_16 = NULL, 141 .config_space_read_32 = NULL, 142 .config_space_write_8 = NULL, 143 .config_space_write_16 = &pci_config_space_write_16, 144 .config_space_write_32 = NULL 145 }; 146 147 static ddf_dev_ops_t pci_fun_ops = { 148 .interfaces[HW_RES_DEV_IFACE] = &pciintel_hw_res_ops, 149 .interfaces[PCI_DEV_IFACE] = &pci_dev_ops 150 }; 128 static ddf_dev_ops_t pci_fun_ops; 151 129 152 130 static int pci_add_device(ddf_dev_t *); … … 615 593 { 616 594 pci_fun_ops.interfaces[HW_RES_DEV_IFACE] = &pciintel_hw_res_ops; 617 pci_fun_ops.interfaces[PCI_DEV_IFACE] = &pci_dev_ops;618 595 } 619 596
Note:
See TracChangeset
for help on using the changeset viewer.