Changeset da74747 in mainline for kernel/arch/sparc64
- Timestamp:
- 2006-08-09T12:24:58Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 287920f
- Parents:
- e2882a7
- Location:
- kernel/arch/sparc64
- Files:
-
- 1 added
- 3 edited
- 1 moved
-
Makefile.inc (modified) (2 diffs)
-
include/drivers/z8530.h (moved) (moved from kernel/arch/sparc64/include/drivers/i8042.h ) (2 diffs)
-
src/console.c (modified) (1 diff)
-
src/drivers/kbd.c (added)
-
src/mm/page.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/Makefile.inc
re2882a7 rda74747 61 61 CONFIG_FB = y 62 62 63 ## Compile with support for i8042controller.63 ## Compile with support for z8530 controller. 64 64 # 65 65 66 CONFIG_ I8042= y67 CONFIG_ I8042_SUN = y68 DEFS += -DCONFIG_ I8042_SUN66 CONFIG_Z8530 = y 67 CONFIG_KBD_SUN = y 68 DEFS += -DCONFIG_KBD_SUN 69 69 70 70 ARCH_SOURCES = \ … … 89 89 arch/$(ARCH)/src/ddi/ddi.c \ 90 90 arch/$(ARCH)/src/drivers/tick.c \ 91 arch/$(ARCH)/src/drivers/ i8042.c91 arch/$(ARCH)/src/drivers/kbd.c -
kernel/arch/sparc64/include/drivers/z8530.h
re2882a7 rda74747 33 33 */ 34 34 35 #ifndef KERN_sparc64_ I8042_H_36 #define KERN_sparc64_ I8042_H_35 #ifndef KERN_sparc64_Z8530_H_ 36 #define KERN_sparc64_Z8530_H_ 37 37 38 38 #include <arch/types.h> … … 46 46 extern volatile uint8_t *kbd_virt_address; 47 47 48 static inline void i8042_data_write(uint8_t data)48 static inline void z8530_data_write(uint8_t data) 49 49 { 50 50 kbd_virt_address[DATA_REG] = data; 51 51 } 52 52 53 static inline uint8_t i8042_data_read(void)53 static inline uint8_t z8530_data_read(void) 54 54 { 55 55 return kbd_virt_address[DATA_REG]; 56 56 } 57 57 58 static inline uint8_t i8042_status_read(void)58 static inline uint8_t z8530_status_read(void) 59 59 { 60 60 return kbd_virt_address[STATUS_REG]; 61 61 } 62 62 63 static inline void i8042_command_write(uint8_t command)63 static inline void z8530_command_write(uint8_t command) 64 64 { 65 65 kbd_virt_address[COMMAND_REG] = command; -
kernel/arch/sparc64/src/console.c
re2882a7 rda74747 54 54 { 55 55 stdin = NULL; 56 57 fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, 58 bootinfo.screen.bpp, bootinfo.screen.scanline, true); 56 59 57 60 if (bootinfo.keyboard.addr) 58 61 kbd_init(); 59 60 fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height,61 bootinfo.screen.bpp, bootinfo.screen.scanline, true);62 62 } 63 63 -
kernel/arch/sparc64/src/mm/page.c
re2882a7 rda74747 47 47 } 48 48 49 /** Map memory-mapped device into virtual memory. 50 * 51 * So far, only DTLB is used to map devices into memory. 52 * Chances are that there will be only a limited amount of 53 * devices that the kernel itself needs to lock in DTLB. 54 * 55 * @param physaddr Physical address of the page where the 56 * device is located. Must be at least 57 * page-aligned. 58 * @param size Size of the device's registers. Must not 59 * exceed 4M and must include extra space 60 * caused by the alignment. 61 * 62 * @return Virtual address of the page where the device is 63 * mapped. 64 */ 49 65 uintptr_t hw_map(uintptr_t physaddr, size_t size) 50 66 { … … 69 85 }; 70 86 87 ASSERT(ALIGN_UP(physaddr, PAGE_SIZE) == physaddr); 71 88 ASSERT(size <= 4*1024*1024); 72 89
Note:
See TracChangeset
for help on using the changeset viewer.
