pmc.c (85619) | pmc.c (92793) |
---|---|
1/*- 2 * PMC (Power Management Controller of NEC PC-98Note) Driver 3 * 4 * Copyright (c) 2001 Chiharu Shibata. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * | 1/*- 2 * PMC (Power Management Controller of NEC PC-98Note) Driver 3 * 4 * Copyright (c) 2001 Chiharu Shibata. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/pc98/cbus/pmc.c 85619 2001-10-28 04:16:50Z nyan $ | 30 * $FreeBSD: head/sys/pc98/cbus/pmc.c 92793 2002-03-20 12:22:31Z kato $ |
31 */ 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/eventhandler.h> 36#include <sys/kernel.h> 37#include <sys/bus.h> 38#include <sys/types.h> --- 7 unchanged lines hidden (view full) --- 46#include <isa/isavar.h> 47 48struct pmc_isa_softc { 49 struct resource *port_res; 50 eventhandler_tag evt; 51 int flags; 52}; 53 | 31 */ 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/eventhandler.h> 36#include <sys/kernel.h> 37#include <sys/bus.h> 38#include <sys/types.h> --- 7 unchanged lines hidden (view full) --- 46#include <isa/isavar.h> 47 48struct pmc_isa_softc { 49 struct resource *port_res; 50 eventhandler_tag evt; 51 int flags; 52}; 53 |
54static int pmc_isa_alloc_resources __P((device_t)); 55static void pmc_isa_release_resources __P((device_t)); 56static int pmc_isa_probe __P((device_t)); 57static int pmc_isa_attach __P((device_t)); 58static int pmc_isa_detach __P((device_t)); | 54static int pmc_isa_alloc_resources(device_t); 55static void pmc_isa_release_resources(device_t); 56static int pmc_isa_probe(device_t); 57static int pmc_isa_attach(device_t); 58static int pmc_isa_detach(device_t); |
59 60#define PMC_ISA_PORT 0x8f0 61#define PMC_ISA_PORTSIZE 4 62 63#define sc_inw(sc, port) \ 64 bus_space_read_2(rman_get_bustag((sc)->port_res), \ 65 rman_get_bushandle((sc)->port_res), (port)) 66 --- 178 unchanged lines hidden --- | 59 60#define PMC_ISA_PORT 0x8f0 61#define PMC_ISA_PORTSIZE 4 62 63#define sc_inw(sc, port) \ 64 bus_space_read_2(rman_get_bustag((sc)->port_res), \ 65 rman_get_bushandle((sc)->port_res), (port)) 66 --- 178 unchanged lines hidden --- |