Changeset 28f660d in mainline for uspace/drv/uhci/root_hub/root_hub.h
- Timestamp:
- 2010-12-31T15:53:35Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 92f924c8
- Parents:
- 2972e21
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/root_hub/root_hub.h
r2972e21 r28f660d 32 32 * @brief UHCI driver 33 33 */ 34 #ifndef DRV_UHCI_ TD_ROOT_HUB_H35 #define DRV_UHCI_ TD_ROOT_HUB_H34 #ifndef DRV_UHCI_ROOT_HUB_H 35 #define DRV_UHCI_ROOT_HUB_H 36 36 37 37 #include <fibril.h> 38 38 #include <driver.h> 39 39 40 #include "port.h" 41 40 42 #define UHCI_ROOT_HUB_PORT_COUNT 2 41 43 #define UHCI_ROOT_HUB_PORT_REGISTERS_OFFSET 0x10 42 44 43 typedef struct port_regs {44 uint16_t portsc[UHCI_ROOT_HUB_PORT_COUNT];45 } port_regs_t;46 47 45 typedef struct root_hub { 48 port_regs_t *registers;49 fid_t checker ;46 uhci_port_t ports[UHCI_ROOT_HUB_PORT_COUNT]; 47 fid_t checker[UHCI_ROOT_HUB_PORT_COUNT]; 50 48 } uhci_root_hub_t; 51 49 52 50 int uhci_root_hub_init( 53 uhci_root_hub_t *instance, device_t *device, void *addr 51 uhci_root_hub_t *instance, device_t *device, void *addr); 54 52 55 int uhci_root_hub_fini( uhci_root_hub_t* instance ); 56 57 //int uhci_root_hub_check_ports( void * device ); 58 53 int uhci_root_hub_fini(uhci_root_hub_t* instance); 59 54 #endif 60 55 /**
Note:
See TracChangeset
for help on using the changeset viewer.