Changeset cb41a5e in mainline for uspace/srv/bd/gxe_bd/gxe_bd.c
- Timestamp:
- 2009-05-21T07:03:38Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a095d20
- Parents:
- 2246de6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/gxe_bd/gxe_bd.c
r2246de6 rcb41a5e 116 116 static int gxe_bd_init(void) 117 117 { 118 int driver_phone;119 118 dev_handle_t dev_handle; 120 119 void *vaddr; … … 126 125 return rc; 127 126 } 128 driver_phone = rc;129 127 130 128 rc = pio_enable((void *) dev_physical, sizeof(gxe_bd_t), &vaddr); … … 144 142 devbuf = vaddr; 145 143 146 rc = devmap_device_register( driver_phone,"disk0", &dev_handle);144 rc = devmap_device_register("disk0", &dev_handle); 147 145 if (rc != EOK) { 148 ipc_hangup(driver_phone);146 devmap_hangup_phone(DEVMAP_DRIVER); 149 147 printf(NAME ": Unable to register device.\n"); 150 148 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.