Changeset 8e7c9fe in mainline for uspace/drv/bus/usb/usbhid/blink1/blink1.h
- Timestamp:
- 2014-09-12T03:45:25Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c53b58e
- Parents:
- 3eb0c85 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/blink1/blink1.h
r3eb0c85 r8e7c9fe 1 1 /* 2 * Copyright (c) 20 05Martin Decky2 * Copyright (c) 2014 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup mips6429 /** @addtogroup drvusbhid 30 30 * @{ 31 31 */ 32 32 /** @file 33 * USB blink(1) subdriver. 33 34 */ 34 35 35 #ifndef KERN_mips64_ARCH_H_36 #define KERN_mips64_ARCH_H_36 #ifndef USB_HID_BLINK1_H_ 37 #define USB_HID_BLINK1_H_ 37 38 38 #include <typedefs.h> 39 #include <usb/dev/driver.h> 40 #include "../usbhid.h" 39 41 40 #define TASKMAP_MAX_RECORDS 32 41 #define CPUMAP_MAX_RECORDS 32 42 #define BOOTINFO_TASK_NAME_BUFLEN 32 42 /** Container for USB blink(1) device. */ 43 typedef struct { 44 /** DDF blink(1) function */ 45 ddf_fun_t *fun; 46 47 /** USB HID device */ 48 usb_hid_dev_t *hid_dev; 49 } usb_blink1_t; 43 50 44 extern size_t cpu_count; 51 extern const char *HID_BLINK1_FUN_NAME; 52 extern const char *HID_BLINK1_CATEGORY; 45 53 46 typedef struct { 47 void *addr; 48 size_t size; 49 char name[BOOTINFO_TASK_NAME_BUFLEN]; 50 } utask_t; 54 extern int usb_blink1_init(usb_hid_dev_t *, void **); 55 extern void usb_blink1_deinit(usb_hid_dev_t *, void *); 51 56 52 typedef struct { 53 uint32_t cpumap; 54 size_t cnt; 55 utask_t tasks[TASKMAP_MAX_RECORDS]; 56 } bootinfo_t; 57 #endif // USB_HID_BLINK1_H_ 57 58 58 extern void arch_pre_main(void *entry, bootinfo_t *bootinfo); 59 60 #endif 61 62 /** @} 59 /** 60 * @} 63 61 */
Note:
See TracChangeset
for help on using the changeset viewer.