Changeset 233af8c5 in mainline for kernel/arch/sparc64/src/drivers/fhc.c
- Timestamp:
- 2006-10-03T22:49:10Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e2cc9a0
- Parents:
- 0b414b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/fhc.c
r0b414b5 r233af8c5 55 55 * and get the complete mapping. 56 56 */ 57 #define FHC_UART_IN O0x3957 #define FHC_UART_INR 0x39 58 58 59 59 #define FHC_UART_IMAP 0x0 … … 91 91 } 92 92 93 void fhc_enable_interrupt(fhc_t *fhc, int in o)93 void fhc_enable_interrupt(fhc_t *fhc, int inr) 94 94 { 95 switch (in o) {96 case FHC_UART_IN O:95 switch (inr) { 96 case FHC_UART_INR: 97 97 fhc->uart_imap[FHC_UART_ICLR] = 0x0; 98 98 fhc->uart_imap[FHC_UART_IMAP] = 0x80000000; 99 99 break; 100 100 default: 101 panic("Unexpected IN O (%d)\n", ino);101 panic("Unexpected INR (%d)\n", inr); 102 102 break; 103 103 } 104 104 } 105 105 106 void fhc_clear_interrupt(fhc_t *fhc, int in o)106 void fhc_clear_interrupt(fhc_t *fhc, int inr) 107 107 { 108 108 ASSERT(fhc->uart_imap); 109 109 110 switch (in o) {111 case FHC_UART_IN O:110 switch (inr) { 111 case FHC_UART_INR: 112 112 fhc->uart_imap[FHC_UART_ICLR] = 0; 113 113 break; 114 114 default: 115 panic("Unexpected IN O (%d)\n", ino);115 panic("Unexpected INR (%d)\n", inr); 116 116 break; 117 117 }
Note:
See TracChangeset
for help on using the changeset viewer.