Changeset bf9cb2f in mainline for uspace/srv/hid
- Timestamp:
- 2014-05-19T01:01:27Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 10ef47ba
- Parents:
- 527f1ca
- Location:
- uspace/srv/hid
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/niagara.c
r527f1ca rbf9cb2f 74 74 uint64_t read_ptr; 75 75 char data[INPUT_BUFFER_SIZE]; 76 } 77 __attribute__ ((packed)) 78 __attribute__ ((aligned(PAGE_SIZE))) 79 *input_buffer_t; 76 } __attribute__((packed)) __attribute__((aligned(PAGE_SIZE))) *input_buffer_t; 80 77 81 78 /* virtual address of the shared buffer */ 82 static input_buffer_t input_buffer ;79 static input_buffer_t input_buffer = (input_buffer_t) AS_AREA_ANY; 83 80 84 81 static volatile bool polling_disabled = false; … … 87 84 /** 88 85 * Initializes the Niagara driver. 89 * Maps the shared buffer and creates the polling thread. 86 * Maps the shared buffer and creates the polling thread. 90 87 */ 91 88 static int niagara_port_init(kbd_dev_t *kdev) -
uspace/srv/hid/output/port/ega.c
r527f1ca rbf9cb2f 215 215 216 216 ega.size = (ega.cols * ega.rows) << 1; 217 ega.addr = AS_AREA_ANY; 217 218 218 219 rc = physmem_map(paddr, -
uspace/srv/hid/output/port/kchar.c
r527f1ca rbf9cb2f 84 84 return rc; 85 85 86 kchar.addr = AS_AREA_ANY; 87 86 88 rc = physmem_map(paddr, 87 89 ALIGN_UP(1, PAGE_SIZE) >> PAGE_WIDTH, -
uspace/srv/hid/output/port/niagara.c
r527f1ca rbf9cb2f 104 104 return rc; 105 105 106 niagara.fifo = (output_fifo_t *) AS_AREA_ANY; 107 106 108 rc = physmem_map(paddr, 1, AS_AREA_READ | AS_AREA_WRITE, 107 109 (void *) &niagara.fifo);
Note:
See TracChangeset
for help on using the changeset viewer.