Changeset 84afc7b in mainline for kernel/arch/sparc64/src/drivers/kbd.c
- Timestamp:
- 2009-03-18T10:53:12Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e749794
- Parents:
- 8015eeec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/kbd.c
r8015eeec r84afc7b 47 47 48 48 #include <console/console.h> 49 #include <ddi/device.h>50 49 #include <ddi/irq.h> 51 50 #include <arch/mm/page.h> … … 75 74 cir_t cir; 76 75 void *cir_arg; 77 76 78 77 #ifdef CONFIG_NS16550 79 78 ns16550_t *ns16550; … … 116 115 uintptr_t pa; 117 116 size_t size; 118 devno_t devno;119 117 inr_t inr; 120 118 … … 165 163 #ifdef CONFIG_Z8530 166 164 case KBD_Z8530: 167 devno = device_assign_devno();168 165 z8530 = (z8530_t *) hw_map(aligned_addr, offset + size) + 169 166 offset; 170 167 171 indev_t *kbrdin_z8530 = z8530_init(z8530, devno,inr, cir, cir_arg);168 indev_t *kbrdin_z8530 = z8530_init(z8530, inr, cir, cir_arg); 172 169 if (kbrdin_z8530) 173 170 kbrd_init(kbrdin_z8530); … … 179 176 sysinfo_set_item_val("kbd", NULL, true); 180 177 sysinfo_set_item_val("kbd.type", NULL, KBD_Z8530); 181 sysinfo_set_item_val("kbd.devno", NULL, devno);182 178 sysinfo_set_item_val("kbd.inr", NULL, inr); 183 179 sysinfo_set_item_val("kbd.address.kernel", NULL, … … 188 184 #ifdef CONFIG_NS16550 189 185 case KBD_NS16550: 190 devno = device_assign_devno();191 186 ns16550 = (ns16550_t *) hw_map(aligned_addr, offset + size) + 192 187 offset; 193 188 194 indev_t *kbrdin_ns16550 = ns16550_init(ns16550, devno,inr, cir, cir_arg);189 indev_t *kbrdin_ns16550 = ns16550_init(ns16550, inr, cir, cir_arg); 195 190 if (kbrdin_ns16550) 196 191 kbrd_init(kbrdin_ns16550); … … 202 197 sysinfo_set_item_val("kbd", NULL, true); 203 198 sysinfo_set_item_val("kbd.type", NULL, KBD_NS16550); 204 sysinfo_set_item_val("kbd.devno", NULL, devno);205 199 sysinfo_set_item_val("kbd.inr", NULL, inr); 206 200 sysinfo_set_item_val("kbd.address.kernel", NULL,
Note:
See TracChangeset
for help on using the changeset viewer.