Changeset cddcc4a3 in mainline for uspace/drv/infrastructure/rootmac/rootmac.c
- Timestamp:
- 2012-08-14T18:16:39Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 669f5cae
- Parents:
- 76d92db1 (diff), 4802dd7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/rootmac/rootmac.c
r76d92db1 rcddcc4a3 52 52 } rootmac_fun_t; 53 53 54 static hw_resource_t pci_conf_regs = { 55 .type = IO_RANGE, 56 .res.io_range = { 57 .address = 0xCF8, 58 .size = 8, 59 .endianness = LITTLE_ENDIAN 54 static hw_resource_t pci_conf_regs[] = { 55 { 56 .type = IO_RANGE, 57 .res.io_range = { 58 .address = 0xfec00000, 59 .size = 4, 60 .endianness = LITTLE_ENDIAN 61 } 62 }, 63 { 64 .type = IO_RANGE, 65 .res.io_range = { 66 .address = 0xfee00000, 67 .size = 4, 68 .endianness = LITTLE_ENDIAN 69 } 60 70 } 61 71 }; … … 63 73 static rootmac_fun_t pci_data = { 64 74 .hw_resources = { 65 1,66 &pci_conf_regs75 2, 76 pci_conf_regs 67 77 } 68 78 }; … … 127 137 static int rootmac_dev_add(ddf_dev_t *dev) 128 138 { 139 #if 0 129 140 /* Register functions */ 130 if (!rootmac_add_fun(dev, "pci0", " pangea_pci", &pci_data))141 if (!rootmac_add_fun(dev, "pci0", "intel_pci", &pci_data)) 131 142 ddf_msg(LVL_ERROR, "Failed to add functions for Mac platform."); 143 #else 144 (void)pci_data; 145 (void)rootmac_add_fun; 146 #endif 132 147 133 148 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.