diff options
Diffstat (limited to 'sys/dev/pci/agp_sis.c')
-rw-r--r-- | sys/dev/pci/agp_sis.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/sys/dev/pci/agp_sis.c b/sys/dev/pci/agp_sis.c index cbf64ac7124..06ae10e3244 100644 --- a/sys/dev/pci/agp_sis.c +++ b/sys/dev/pci/agp_sis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agp_sis.c,v 1.17 2014/03/26 14:41:41 mpi Exp $ */ +/* $OpenBSD: agp_sis.c,v 1.18 2014/05/27 12:40:00 kettenis Exp $ */ /* $NetBSD: agp_sis.c,v 1.2 2001/09/15 00:25:00 thorpej Exp $ */ /*- @@ -146,31 +146,6 @@ agp_sis_attach(struct device *parent, struct device *self, void *aux) return; } -#if 0 -int -agp_sis_detach(struct agp_softc *sc) -{ - struct agp_sis_softc *ssc = sc->sc_chipc; - pcireg_t reg; - int error; - - error = agp_generic_detach(sc); - if (error) - return (error); - - reg = pci_conf_read(sc->sc_pc, sc->sc_pcitag, AGP_SIS_WINCTRL); - reg &= ~3; - reg &= 0x00ffffff; - pci_conf_write(sc->sc_pc, sc->sc_pcitag, AGP_SIS_WINCTRL, reg); - - /* Put the aperture back the way it started. */ - AGP_SET_APERTURE(sc, ssc->initial_aperture); - - agp_free_gatt(sc, ssc->gatt); - return (0); -} -#endif - int agp_sis_activate(struct device *arg, int act) { |