diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-02-20 00:26:18 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-02-20 00:26:18 +0000 |
commit | 93abe43138073b97c3abdf1773730ad2a2848750 (patch) | |
tree | d9493aebe90d6269d9464f23ffb940b781febbe1 | |
parent | b7cbcf2e2473d689cad164c3d55db22e880426f9 (diff) |
In typical linux style, set a magic bit that makes the floppy work on
a machine with yds; reported by kurem at upcase dot inf dot upol dot cz
-rw-r--r-- | sys/dev/pci/yds.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/ydsreg.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/yds.c b/sys/dev/pci/yds.c index 9506cf1b772..43764bbbeb4 100644 --- a/sys/dev/pci/yds.c +++ b/sys/dev/pci/yds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yds.c,v 1.15 2002/03/14 03:16:06 millert Exp $ */ +/* $OpenBSD: yds.c,v 1.16 2003/02/20 00:26:17 jason Exp $ */ /* $NetBSD: yds.c,v 1.5 2001/05/21 23:55:04 minoura Exp $ */ /* @@ -570,7 +570,7 @@ yds_configure_legacy (arg) reg = pci_conf_read(sc->sc_pc, sc->sc_pcitag, YDS_PCI_LEGACY); reg &= ~0x8133c03f; /* these bits are out of interest */ - reg |= ((YDS_PCI_EX_LEGACY_IMOD) | + reg |= YDS_PCI_EX_LEGACY_SBMOD_XXX | ((YDS_PCI_EX_LEGACY_IMOD) | (YDS_PCI_LEGACY_FMEN | YDS_PCI_LEGACY_MEN /*| YDS_PCI_LEGACY_MIEN*/)); if (FLEXIBLE) { diff --git a/sys/dev/pci/ydsreg.h b/sys/dev/pci/ydsreg.h index 2a555b81dc3..d6b07db8fd5 100644 --- a/sys/dev/pci/ydsreg.h +++ b/sys/dev/pci/ydsreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ydsreg.h,v 1.2 2001/07/08 06:43:26 fgsch Exp $ */ +/* $OpenBSD: ydsreg.h,v 1.3 2003/02/20 00:26:17 jason Exp $ */ /* $NetBSD$ */ /* @@ -78,6 +78,7 @@ # define YDS_PCI_EX_LEGACY_JSIO_205 (0x00c0 << 16) # define YDS_PCI_EX_LEGACY_MAIM (0x0100 << 16) # define YDS_PCI_EX_LEGACY_SBMOD_PCI (0x0000 << 16) +# define YDS_PCI_EX_LEGACY_SBMOD_XXX (0x0800 << 16) # define YDS_PCI_EX_LEGACY_SBMOD_DDMA (0x1000 << 16) # define YDS_PCI_EX_LEGACY_SBVER_3 (0x0000 << 16) # define YDS_PCI_EX_LEGACY_SBVER_2 (0x2000 << 16) |