Changeset bab6388 in mainline for uspace/drv/test2/test2.c
- Timestamp:
- 2011-02-13T20:23:37Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7df0477e
- Parents:
- 68414f4a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/test2/test2.c
r68414f4a rbab6388 38 38 #define NAME "test2" 39 39 40 static int add_device(device_t *dev);40 static int test2_add_device(device_t *dev); 41 41 42 42 static driver_ops_t driver_ops = { 43 .add_device = & add_device43 .add_device = &test2_add_device 44 44 }; 45 45 46 static driver_t t he_driver = {46 static driver_t test2_driver = { 47 47 .name = NAME, 48 48 .driver_ops = &driver_ops … … 102 102 } 103 103 104 static int add_device(device_t *dev)104 static int test2_add_device(device_t *dev) 105 105 { 106 printf(NAME ": add_device(name=\"%s\", handle=%d)\n",106 printf(NAME ": test2_add_device(name=\"%s\", handle=%d)\n", 107 107 dev->name, (int) dev->handle); 108 108 … … 125 125 { 126 126 printf(NAME ": HelenOS test2 virtual device driver\n"); 127 return driver_main(&t he_driver);127 return driver_main(&test2_driver); 128 128 } 129 129
Note:
See TracChangeset
for help on using the changeset viewer.