sparc32: Remove some more sun4c code from floppy glue.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4c84d26c9a
commit
0301a6cbcc
1 changed files with 2 additions and 14 deletions
|
@ -102,24 +102,12 @@ static struct sun_floppy_ops sun_fdops;
|
||||||
/* Routines unique to each controller type on a Sun. */
|
/* Routines unique to each controller type on a Sun. */
|
||||||
static void sun_set_dor(unsigned char value, int fdc_82077)
|
static void sun_set_dor(unsigned char value, int fdc_82077)
|
||||||
{
|
{
|
||||||
if (sparc_cpu_model == sun4c) {
|
if (fdc_82077)
|
||||||
unsigned int bits = 0;
|
|
||||||
if (value & 0x10)
|
|
||||||
bits |= AUXIO_FLPY_DSEL;
|
|
||||||
if ((value & 0x80) == 0)
|
|
||||||
bits |= AUXIO_FLPY_EJCT;
|
|
||||||
set_auxio(bits, (~bits) & (AUXIO_FLPY_DSEL|AUXIO_FLPY_EJCT));
|
|
||||||
}
|
|
||||||
if (fdc_82077) {
|
|
||||||
sun_fdc->dor_82077 = value;
|
sun_fdc->dor_82077 = value;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static unsigned char sun_read_dir(void)
|
static unsigned char sun_read_dir(void)
|
||||||
{
|
{
|
||||||
if (sparc_cpu_model == sun4c)
|
|
||||||
return (get_auxio() & AUXIO_FLPY_DCHG) ? 0x80 : 0;
|
|
||||||
else
|
|
||||||
return sun_fdc->dir_82077;
|
return sun_fdc->dir_82077;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue