Changeset eff1a590 in mainline
- Timestamp:
- 2010-03-25T14:47:20Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1769ee
- Parents:
- a087f2e
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/amd64/Makefile.inc
ra087f2e reff1a590 37 37 38 38 RD_DRVS = \ 39 root 39 root \ 40 rootia32 40 41 41 42 MODULES := $(notdir $(COMPONENTS)) -
uspace/Makefile
ra087f2e reff1a590 76 76 77 77 ifeq ($(UARCH),ia32) 78 DIRS += srv/dd 78 DIRS += srv/dd 79 DIRS += srv/drivers/rootia32 79 80 # DIRS += srv/hw/bus/pci 80 81 endif -
uspace/lib/libdrv/include/driver.h
ra087f2e reff1a590 44 44 const char *name; 45 45 match_id_list_t match_ids; 46 void *driver_data; 46 47 47 // TODO add more items - parent bus type etc.48 // TODO add more items 48 49 49 50 link_t link; … … 72 73 } 73 74 74 static inline delete_device(device_t *dev) {75 static inline void delete_device(device_t *dev) { 75 76 clean_match_ids(&dev->match_ids); 76 77 if (NULL != dev->name) { -
uspace/srv/devman/devman.c
ra087f2e reff1a590 591 591 size_t pathsize = (str_size(node->name) + 1); 592 592 if (NULL != parent) { 593 pathsize += str_size(parent-> name) + 1;593 pathsize += str_size(parent->pathname) + 1; 594 594 } 595 595 -
uspace/srv/drivers/root/root.c
ra087f2e reff1a590 80 80 if (NULL == (platform = create_device())) { 81 81 goto failure; 82 } 82 } 83 83 84 // TODO - replace this with some better solution (sysinfo ?) 85 platform->name = STRING(UARCH); 84 platform->name = "hw"; 86 85 printf(NAME ": the new device's name is %s.\n", platform->name); 87 86 … … 90 89 goto failure; 91 90 } 92 match_id->id = platform->name; 91 92 // TODO - replace this with some better solution (sysinfo ?) 93 match_id->id = STRING(UARCH); 93 94 match_id->score = 100; 94 95 add_match_id(&platform->match_ids, match_id); … … 130 131 } 131 132 132 static bool root_init()133 {134 // TODO driver initialization135 return true;136 }137 138 133 int main(int argc, char *argv[]) 139 134 { 140 printf(NAME ": HelenOS root device driver\n"); 141 if (!root_init()) { 142 printf(NAME ": Error while initializing driver.\n"); 143 return -1; 144 } 145 135 printf(NAME ": HelenOS root device driver\n"); 146 136 return driver_main(&root_driver); 147 137 }
Note:
See TracChangeset
for help on using the changeset viewer.