Changeset f9a56c0 in mainline for kernel/genarch/src
- Timestamp:
- 2006-08-17T11:39:38Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ee289cf0
- Parents:
- ec2c55a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/kbd/z8530.c
rec2c55a rf9a56c0 39 39 #include <genarch/kbd/scanc.h> 40 40 #include <genarch/kbd/scanc_sun.h> 41 #include <arch/drivers/fhc.h> 41 42 #include <arch/drivers/z8530.h> 42 #include <arch/drivers/kbd.h>43 43 #include <arch/interrupt.h> 44 44 #include <cpu.h> … … 65 65 }; 66 66 67 void z8530_interrupt(int n, istate_t *istate);68 67 void z8530_wait(void); 69 68 … … 72 71 { 73 72 } 73 74 74 /** Resume the former interrupt vector */ 75 75 void z8530_release(void) 76 76 { 77 77 } 78 79 #include <print.h>80 78 81 79 /** Initialize z8530. */ … … 85 83 stdin = &kbrd; 86 84 85 (void) z8530_read_a(RR8); 86 87 87 z8530_write_a(WR1, WR1_IARCSC); /* interrupt on all characters */ 88 z8530_write_a(WR2, 12); /* FIXME: IRQ12 ??? */89 88 90 89 /* 8 bits per character and enable receiver */ … … 92 91 93 92 z8530_write_a(WR9, WR9_MIE); /* Master Interrupt Enable. */ 93 94 /* 95 * We need to initialize the FireHose Controller, 96 * to which is this z8530 attached. Otherwise 97 * interrupts generated by the z8530 would not 98 * be forwarded to the CPU. 99 */ 100 fhc_init(); 94 101 } 95 102 … … 99 106 * @param istate Interrupted state. 100 107 */ 101 void z8530_interrupt( int n, istate_t *istate)108 void z8530_interrupt(void) 102 109 { 110 z8530_poll(); 103 111 } 104 112
Note:
See TracChangeset
for help on using the changeset viewer.