diff options
Diffstat (limited to 'sys/arch/sparc/include')
-rw-r--r-- | sys/arch/sparc/include/autoconf.h | 12 | ||||
-rw-r--r-- | sys/arch/sparc/include/conf.h | 24 | ||||
-rw-r--r-- | sys/arch/sparc/include/cpu.h | 4 |
3 files changed, 37 insertions, 3 deletions
diff --git a/sys/arch/sparc/include/autoconf.h b/sys/arch/sparc/include/autoconf.h index c940919b78c..55b895a1f7a 100644 --- a/sys/arch/sparc/include/autoconf.h +++ b/sys/arch/sparc/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.6 1999/04/18 03:24:27 jason Exp $ */ +/* $OpenBSD: autoconf.h,v 1.7 1999/07/23 19:11:27 jason Exp $ */ /* $NetBSD: autoconf.h,v 1.20 1997/05/24 20:03:03 pk Exp $ */ /* @@ -109,6 +109,16 @@ struct confargs { #define BUS_VME32 3 #define BUS_SBUS 4 #define BUS_XBOX 5 +#define BUS_FGA 6 +#define BUS_FGA_A16D8 7 +#define BUS_FGA_A16D16 8 +#define BUS_FGA_A16D32 9 +#define BUS_FGA_A24D8 10 +#define BUS_FGA_A24D16 11 +#define BUS_FGA_A24D32 12 +#define BUS_FGA_A32D8 13 +#define BUS_FGA_A32D16 14 +#define BUS_FGA_A32D32 15 /* * mapiodev maps an I/O device to a virtual address, returning the address. diff --git a/sys/arch/sparc/include/conf.h b/sys/arch/sparc/include/conf.h index 77039f962ca..1dc3d00790e 100644 --- a/sys/arch/sparc/include/conf.h +++ b/sys/arch/sparc/include/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.9 1999/02/01 00:30:43 jason Exp $ */ +/* $OpenBSD: conf.h,v 1.10 1999/07/23 19:11:27 jason Exp $ */ /* $NetBSD: conf.h,v 1.8 1996/12/31 07:12:43 mrg Exp $ */ /* @@ -109,4 +109,26 @@ cdev_decl(mbpp); cdev_decl(stty); cdev_decl(sbpp); +/* open, close, ioctl */ +#define cdev_scf_init(c,n) { \ + dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \ + (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ + (dev_type_stop((*))) nullop, 0, seltrue, \ + (dev_type_mmap((*))) enodev } +cdev_decl(scf); + +/* open, close, ioctl, read, write */ +#define cdev_flash_init(c,n) { \ + dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ + dev_init(c,n,write), dev_init(c,n,ioctl), \ + (dev_type_stop((*))) nullop, 0, seltrue, (dev_type_mmap((*))) enodev } +cdev_decl(flash); + +#define cdev_fga_init(c,n) { \ + dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \ + (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ + (dev_type_stop((*))) nullop, 0, seltrue, \ + (dev_type_mmap((*))) enodev } +cdev_decl(fga); + cdev_decl(ksyms); diff --git a/sys/arch/sparc/include/cpu.h b/sys/arch/sparc/include/cpu.h index 4220b274ef7..ce4679565d6 100644 --- a/sys/arch/sparc/include/cpu.h +++ b/sys/arch/sparc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.5 1999/01/10 13:34:20 niklas Exp $ */ +/* $OpenBSD: cpu.h,v 1.6 1999/07/23 19:11:27 jason Exp $ */ /* $NetBSD: cpu.h,v 1.24 1997/03/15 22:25:15 pk Exp $ */ /* @@ -176,6 +176,8 @@ void intr_fasttrap __P((int level, void (*vec)(void))); /* auxreg.c */ void led_blink __P((void *)); +/* scf.c */ +void scfblink __P((void *)); /* disksubr.c */ struct dkbad; int isbad __P((struct dkbad *bt, int, int, int)); |