ppc.c (111748) | ppc.c (114293) |
---|---|
1/*- 2 * Copyright (c) 1997-2000 Nicolas Souchu 3 * Copyright (c) 2001 Alcove - Nicolas Souchu 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 1997-2000 Nicolas Souchu 3 * Copyright (c) 2001 Alcove - Nicolas Souchu 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/ppc/ppc.c 111748 2003-03-02 16:54:40Z des $ | 27 * $FreeBSD: head/sys/dev/ppc/ppc.c 114293 2003-04-30 12:57:40Z markm $ |
28 * 29 */ 30 31#include "opt_ppc.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> --- 19 unchanged lines hidden (view full) --- 55#include "ppbus_if.h" 56 57#define LOG_PPC(function, ppc, string) \ 58 if (bootverbose) printf("%s: %s\n", function, string) 59 60 61#define DEVTOSOFTC(dev) ((struct ppc_data *)device_get_softc(dev)) 62 | 28 * 29 */ 30 31#include "opt_ppc.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> --- 19 unchanged lines hidden (view full) --- 55#include "ppbus_if.h" 56 57#define LOG_PPC(function, ppc, string) \ 58 if (bootverbose) printf("%s: %s\n", function, string) 59 60 61#define DEVTOSOFTC(dev) ((struct ppc_data *)device_get_softc(dev)) 62 |
63devclass_t ppc_devclass; | 63static devclass_t ppc_devclass; |
64 65static int ppc_probe(device_t dev); 66static int ppc_attach(device_t dev); 67static int ppc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val); 68 69static void ppc_reset_epp(device_t); 70static void ppc_ecp_sync(device_t); 71static void ppcintr(void *arg); --- 2095 unchanged lines hidden --- | 64 65static int ppc_probe(device_t dev); 66static int ppc_attach(device_t dev); 67static int ppc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val); 68 69static void ppc_reset_epp(device_t); 70static void ppc_ecp_sync(device_t); 71static void ppcintr(void *arg); --- 2095 unchanged lines hidden --- |