diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
commit | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch) | |
tree | 40b1cb534496a7f1ca0f5c314a523c69f1fee464 /include/asm-sparc/auxio.h | |
parent | 7206675c40394c78a90e74812bbdbf8cf3cca1be (diff) |
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'include/asm-sparc/auxio.h')
-rw-r--r-- | include/asm-sparc/auxio.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/asm-sparc/auxio.h b/include/asm-sparc/auxio.h index be4107408..f5b9d5591 100644 --- a/include/asm-sparc/auxio.h +++ b/include/asm-sparc/auxio.h @@ -1,4 +1,4 @@ -/* $Id: auxio.h,v 1.14 1996/10/31 06:29:10 davem Exp $ +/* $Id: auxio.h,v 1.16 1997/01/31 23:26:05 tdyas Exp $ * auxio.h: Definitions and code for the Auxiliary I/O register. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) @@ -56,6 +56,8 @@ extern __inline__ void set_auxio(unsigned char bits_on, unsigned char bits_off) *AUXREG = ((regval | bits_on) & ~bits_off) | AUXIO_ORMEIN; break; case sun4m: + if(!AUXREG) + break; /* VME chassic sun4m, no auxio. */ regval = *AUXREG; *AUXREG = ((regval | bits_on) & ~bits_off) | AUXIO_ORMEIN4M; break; @@ -67,4 +69,13 @@ extern __inline__ void set_auxio(unsigned char bits_on, unsigned char bits_off) } #endif /* !(__ASSEMBLY__) */ + +/* AUXIO2 (Power Off Control) */ +extern __volatile__ unsigned char * auxio_power_register; + +#define AUXIO_POWER_DETECT_FAILURE 32 +#define AUXIO_POWER_CLEAR_FAILURE 2 +#define AUXIO_POWER_OFF 1 + + #endif /* !(_SPARC_AUXIO_H) */ |