Changeset eeb643d in mainline for kernel/arch/sparc64/src/drivers/niagara.c
- Timestamp:
- 2010-01-24T17:40:43Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 86018c1
- Parents:
- 99de22b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/niagara.c
r99de22b reeb643d 85 85 * the mapped buffer. The shared buffer definition follows. 86 86 */ 87 /*88 87 #define OUTPUT_BUFFER_SIZE ((PAGE_SIZE) - 2 * 8) 89 88 static volatile struct { … … 95 94 __attribute__ ((aligned(PAGE_SIZE))) 96 95 output_buffer; 97 */98 96 99 97 #if 0 … … 193 191 static void niagara_poll(niagara_instance_t *instance) 194 192 { 195 /*196 193 while (output_buffer.read_ptr != output_buffer.write_ptr) { 197 194 do_putchar(output_buffer.data[output_buffer.read_ptr]); … … 199 196 ((output_buffer.read_ptr) + 1) % OUTPUT_BUFFER_SIZE; 200 197 } 201 */202 198 203 199 uint64_t c; … … 245 241 246 242 instance->srlnin = NULL; 243 sysinfo_set_item_val("fb.kind", NULL, 5); 244 245 /* 246 * Set sysinfos and pareas so that the userspace counterpart of the 247 * niagara fb driver can communicate with kernel using a shared buffer. 248 */ 249 output_buffer.read_ptr = 0; 250 output_buffer.write_ptr = 0; 251 252 sysinfo_set_item_val("niagara.outbuf.address", NULL, 253 KA2PA(&output_buffer)); 254 sysinfo_set_item_val("niagara.outbuf.size", NULL, 255 PAGE_SIZE); 256 sysinfo_set_item_val("niagara.outbuf.datasize", NULL, 257 OUTPUT_BUFFER_SIZE); 258 259 static parea_t outbuf_parea; 260 outbuf_parea.pbase = (uintptr_t) (KA2PA(&output_buffer)); 261 outbuf_parea.frames = 1; 262 ddi_parea_register(&outbuf_parea); 247 263 248 264 #if 0 … … 261 277 sysinfo_set_item_val("kbd.devno", NULL, devno); 262 278 sysinfo_set_item_val("kbd.inr", NULL, FICTIONAL_INR); 263 sysinfo_set_item_val("fb.kind", NULL, 5);264 279 #endif 265 280
Note:
See TracChangeset
for help on using the changeset viewer.