auxio_32.c (6206aa8b2b9a45b4cf3ee31b7209b014be349fd9) auxio_32.c (6943f3da3e64edd95ee2d33abc0a642357746ba6)
1/* auxio.c: Probing for the Sparc AUXIO register at boot time.
2 *
3 * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
4 */
5
6#include <linux/stddef.h>
7#include <linux/init.h>
8#include <linux/spinlock.h>

--- 62 unchanged lines hidden (view full) ---

71}
72
73unsigned char get_auxio(void)
74{
75 if(auxio_register)
76 return sbus_readb(auxio_register);
77 return 0;
78}
1/* auxio.c: Probing for the Sparc AUXIO register at boot time.
2 *
3 * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
4 */
5
6#include <linux/stddef.h>
7#include <linux/init.h>
8#include <linux/spinlock.h>

--- 62 unchanged lines hidden (view full) ---

71}
72
73unsigned char get_auxio(void)
74{
75 if(auxio_register)
76 return sbus_readb(auxio_register);
77 return 0;
78}
79EXPORT_SYMBOL(get_auxio);
79
80void set_auxio(unsigned char bits_on, unsigned char bits_off)
81{
82 unsigned char regval;
83 unsigned long flags;
84 spin_lock_irqsave(&auxio_lock, flags);
85 switch(sparc_cpu_model) {
86 case sun4c:

--- 10 unchanged lines hidden (view full) ---

97 break;
98 case sun4d:
99 break;
100 default:
101 panic("Can't set AUXIO register on this machine.");
102 };
103 spin_unlock_irqrestore(&auxio_lock, flags);
104}
80
81void set_auxio(unsigned char bits_on, unsigned char bits_off)
82{
83 unsigned char regval;
84 unsigned long flags;
85 spin_lock_irqsave(&auxio_lock, flags);
86 switch(sparc_cpu_model) {
87 case sun4c:

--- 10 unchanged lines hidden (view full) ---

98 break;
99 case sun4d:
100 break;
101 default:
102 panic("Can't set AUXIO register on this machine.");
103 };
104 spin_unlock_irqrestore(&auxio_lock, flags);
105}
106EXPORT_SYMBOL(set_auxio);
105
107
106
107/* sun4m power control register (AUXIO2) */
108
109volatile unsigned char * auxio_power_register = NULL;
110
111void __init auxio_power_probe(void)
112{
113 struct linux_prom_registers regs;
114 int node;

--- 25 unchanged lines hidden ---
108/* sun4m power control register (AUXIO2) */
109
110volatile unsigned char * auxio_power_register = NULL;
111
112void __init auxio_power_probe(void)
113{
114 struct linux_prom_registers regs;
115 int node;

--- 25 unchanged lines hidden ---