Changes in / [3742068:b330cb1f] in mainline
- Files:
-
- 6 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/amd64/Makefile.inc
r3742068 rb330cb1f 43 43 isa \ 44 44 ns8250 \ 45 ehci-hcd \46 45 uhci-hcd \ 47 46 uhci-rhd \ -
uspace/Makefile
r3742068 rb330cb1f 117 117 srv/hw/irc/apic \ 118 118 srv/hw/irc/i8259 \ 119 drv/ehci-hcd \120 119 drv/uhci-hcd \ 121 120 drv/uhci-rhd \ … … 135 134 srv/hw/irc/apic \ 136 135 srv/hw/irc/i8259 \ 137 drv/ehci-hcd \138 136 drv/uhci-hcd \ 139 137 drv/uhci-rhd \ -
uspace/drv/pciintel/pci.c
r3742068 rb330cb1f 127 127 } 128 128 129 static int pci_config_space_write_32( 130 ddf_fun_t *fun, uint32_t address, uint32_t data) 131 { 132 if (address > 252) 133 return EINVAL; 134 pci_conf_write_32(PCI_FUN(fun), address, data); 135 return EOK; 136 } 137 138 static int pci_config_space_write_16( 139 ddf_fun_t *fun, uint32_t address, uint16_t data) 129 static int pci_config_space_write_16(ddf_fun_t *fun, uint32_t address, uint16_t data) 140 130 { 141 131 if (address > 254) … … 145 135 } 146 136 147 static int pci_config_space_write_8(148 ddf_fun_t *fun, uint32_t address, uint8_t data)149 {150 if (address > 255)151 return EINVAL;152 pci_conf_write_8(PCI_FUN(fun), address, data);153 return EOK;154 }155 156 static int pci_config_space_read_32(157 ddf_fun_t *fun, uint32_t address, uint32_t *data)158 {159 if (address > 252)160 return EINVAL;161 *data = pci_conf_read_32(PCI_FUN(fun), address);162 return EOK;163 }164 165 static int pci_config_space_read_16(166 ddf_fun_t *fun, uint32_t address, uint16_t *data)167 {168 if (address > 254)169 return EINVAL;170 *data = pci_conf_read_16(PCI_FUN(fun), address);171 return EOK;172 }173 174 static int pci_config_space_read_8(175 ddf_fun_t *fun, uint32_t address, uint8_t *data)176 {177 if (address > 255)178 return EINVAL;179 *data = pci_conf_read_8(PCI_FUN(fun), address);180 return EOK;181 }182 137 183 138 static hw_res_ops_t pciintel_hw_res_ops = { … … 187 142 188 143 static pci_dev_iface_t pci_dev_ops = { 189 .config_space_read_8 = &pci_config_space_read_8,190 .config_space_read_16 = &pci_config_space_read_16,191 .config_space_read_32 = &pci_config_space_read_32,192 .config_space_write_8 = &pci_config_space_write_8,144 .config_space_read_8 = NULL, 145 .config_space_read_16 = NULL, 146 .config_space_read_32 = NULL, 147 .config_space_write_8 = NULL, 193 148 .config_space_write_16 = &pci_config_space_write_16, 194 .config_space_write_32 = &pci_config_space_write_32149 .config_space_write_32 = NULL 195 150 }; 196 151
Note:
See TracChangeset
for help on using the changeset viewer.