1 /* $NetBSD: gayle.c,v 1.6 2005/12/11 12:16:26 christos Exp $ */ 2 3 /* public domain */ 4 5 #include <sys/cdefs.h> 6 __KERNEL_RCSID(0, "$NetBSD: gayle.c,v 1.6 2005/12/11 12:16:26 christos Exp $"); 7 8 /* 9 * Gayle management routines 10 * 11 * Any module that uses gayle should call gayle_init() before using anything 12 * related to gayle. gayle_init() can be called multiple times. 13 */ 14 15 #include <amiga/amiga/gayle.h> 16 #include <amiga/dev/zbusvar.h> 17 18 struct gayle_struct *gayle_base_virtual_address = 0; 19 20 #define GAYLE_PHYS_ADDRESS 0xda8000 21 22 void 23 gayle_init(void) { 24 25 if (gayle_base_virtual_address != 0) 26 return; 27 28 gayle_base_virtual_address = 29 (struct gayle_struct *) __UNVOLATILE(ztwomap(GAYLE_PHYS_ADDRESS)); 30 } 31