Changeset e1dbcbc in mainline for uspace/app/vuhid/ifaces.c
- Timestamp:
- 2011-04-29T13:43:01Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a81a1d09
- Parents:
- 380e0364 (diff), f19f1b7 (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/app/vuhid/ifaces.c
r380e0364 re1dbcbc 1 1 /* 2 * Copyright (c) 2007 Jan Hudecek 3 * Copyright (c) 2008 Martin Decky 2 * Copyright (c) 2011 Vojtech Horky 4 3 * All rights reserved. 5 4 * … … 28 27 */ 29 28 30 /** @addtogroup genericproc29 /** @addtogroup usbvirthid 31 30 * @{ 32 31 */ 33 /** @file tasklet.c 34 * @brief Tasklet implementation 32 /** 33 * @file 34 * List of known interfaces. 35 35 */ 36 #include <stdlib.h> 37 #include "ifaces.h" 36 38 37 #include <proc/tasklet.h> 38 #include <synch/spinlock.h> 39 #include <mm/slab.h> 40 #include <config.h> 39 extern vuhid_interface_t vuhid_interface_bootkbd; 41 40 42 /** Spinlock protecting list of tasklets */ 43 SPINLOCK_INITIALIZE(tasklet_lock); 44 45 /** Array of tasklet lists for every CPU */ 46 tasklet_descriptor_t **tasklet_list; 47 48 void tasklet_init(void) 49 { 50 unsigned int i; 51 52 tasklet_list = malloc(sizeof(tasklet_descriptor_t *) * config.cpu_count, 0); 53 if (!tasklet_list) 54 panic("Error initializing tasklets."); 55 56 for (i = 0; i < config.cpu_count; i++) 57 tasklet_list[i] = NULL; 58 59 spinlock_initialize(&tasklet_lock, "tasklet_lock"); 60 } 41 vuhid_interface_t *available_hid_interfaces[] = { 42 &vuhid_interface_bootkbd, 43 NULL 44 }; 61 45 62 46
Note:
See TracChangeset
for help on using the changeset viewer.