boot.h revision 1.10
1/* $NetBSD: boot.h,v 1.10 2012/05/19 14:40:13 kiyohara Exp $ */ 2 3#define TICKS_PER_SEC (66666667 / 4) /* 66MHz */ 4#define NS_PER_TICK (1000000000 / TICKS_PER_SEC) 5 6/* 7 * srt0 8 */ 9void run(void *, void *, void *, void *, void *); 10 11/* 12 * clock 13 */ 14void delay(u_int); 15 16/* 17 * com 18 */ 19int comspeed(long); 20 21/* 22 * console 23 */ 24char *cninit(int *, int *); 25int cngetc(void); 26void cnputc(int); 27int cnscan(void); 28 29/* 30 * inkernel 31 */ 32void init_in(u_long loadaddr); 33int instrategy(void *, int , daddr_t, size_t, void *, size_t *); 34int inopen(struct open_file *); 35int inclose(struct open_file *); 36 37/* 38 * io 39 */ 40void outb(int, char); 41void outw(int, u_int16_t); 42u_char inb(int); 43u_char readb(u_long); 44u_short readw(u_long); 45u_long readl(u_long); 46void writeb(u_long, u_char); 47void writel(u_long, u_long); 48void _wbinv(uint32_t, uint32_t); 49void _inv(uint32_t, uint32_t); 50u_long local_to_PCI(u_long); 51 52/* 53 * kbd 54 */ 55int kbd(int); 56void kbdreset(void); 57int kbd_getc(void); 58 59/* 60 * monitor 61 */ 62int db_monitor(void); 63 64/* 65 * pci 66 */ 67void enablePCI(int, int, int, int); 68int PCISlotnum(u_int, u_int, u_int); 69int PCI_vendor(int); 70u_long PCIAddress(int, u_int, int); 71int scan_PCI(int); 72void unlockVideo(int); 73 74/* 75 * tgets 76 */ 77int tgets(char *); 78 79/* 80 * vga 81 */ 82void vga_init(u_char *); 83void vga_putc(int); 84void vga_puts(char *); 85 86/* 87 * vreset 88 */ 89void vga_reset(u_char *); 90