Changeset 9600516 in mainline for uspace/drv/uhci/uhci_struct
- Timestamp:
- 2011-01-21T16:49:47Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 643b983
- Parents:
- 1062c8d
- Location:
- uspace/drv/uhci/uhci_struct
- Files:
-
- 1 added
- 3 moved
-
frame_list.h (moved) (moved from uspace/drv/uhci/link_ptr.h ) (1 diff)
-
link_pointer.h (moved) (moved from uspace/drv/uhci/td_ptr.h ) (2 diffs)
-
queue_head.h (added)
-
transfer_descriptor.h (moved) (moved from uspace/drv/uhci/transfer.h ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/uhci_struct/frame_list.h
r1062c8d r9600516 32 32 * @brief UHCI driver 33 33 */ 34 #ifndef DRV_UHCI_ LINK_PTR_H35 #define DRV_UHCI_ LINK_PTR_H34 #ifndef DRV_UHCI_FRAME_LIST_H 35 #define DRV_UHCI_FRAME_LIST_H 36 36 37 #include " td_ptr.h"37 #include "link_pointer.h" 38 38 39 /** Links in Frame List */ 40 typedef td_ptr_t link_ptr_t; 39 #define UHCI_FRAME_LIST_COUNT 1024 41 40 41 typedef link_pointer_t frame_list_t[UHCI_FRAME_LIST_COUNT]; 42 42 #endif 43 43 /** -
uspace/drv/uhci/uhci_struct/link_pointer.h
r1062c8d r9600516 32 32 * @brief UHCI driver 33 33 */ 34 #ifndef DRV_UHCI_ TD_PTR_H35 #define DRV_UHCI_ TD_PTR_H34 #ifndef DRV_UHCI_LINK_POINTER_H 35 #define DRV_UHCI_LINK_POINTER_H 36 36 37 /** UHCI Transfer Descriptor pointer */ 38 typedef struct td_ptr { 39 uint32_t fpl:28; 40 char :2; 37 /* UHCI link pointer, used by many data structures */ 38 typedef struct link_pointer { 39 uint32_t addr:28; 40 uint8_t zero:1; 41 uint8_t reserved:1; 41 42 uint8_t qh:1; 42 43 uint8_t terminate:1; 43 } __attribute__(( "packed")) td_ptr_t;44 } __attribute__((packed)) link_pointer_t; 44 45 45 46 #endif … … 47 48 * @} 48 49 */ 50 -
uspace/drv/uhci/uhci_struct/transfer_descriptor.h
r1062c8d r9600516 32 32 * @brief UHCI driver 33 33 */ 34 #ifndef DRV_UHCI_TRANSFER_H 35 #define DRV_UHCI_TRANSFER_H 34 #ifndef DRV_UHCI_TRANSFER_DESCRIPTOR_H 35 #define DRV_UHCI_TRANSFER_DESCRIPTOR_H 36 37 #include "callback.h" 36 38 37 39 /** Status field in UHCI Transfer Descriptor (TD) */ … … 45 47 uint8_t bitstuff:1; 46 48 uint8_t :1; /* reserved */ 47 } status_t 49 } status_t; 48 50 49 51 /** UHCI Transfer Descriptor */ 50 typedef struct t d{52 typedef struct transfer_descriptor { 51 53 uint32_t fpl:28; 52 54 char :1; /* reserved */ … … 73 75 74 76 uint32_t buffer_ptr; 75 } __attribute__(("packed")) td_t;76 77 78 /* there is 16 byte of data available here 79 * those are used to store callback pointer 80 * and next pointer. Thus there is some free space 81 * on 32bits systems. 82 */ 83 struct transfer_descriptor *next; 84 callback_t *callback; 85 } __attribute__((packed)) transfer_descriptor_t; 77 86 78 87 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
