xref: /openbsd-src/sys/arch/sh/dev/pciide_machdep.c (revision 859d5ed4e977cc7c386c854ab9a07632d5d7da87)
1*859d5ed4Skrw /*	$OpenBSD: pciide_machdep.c,v 1.2 2010/08/07 03:50:01 krw Exp $	*/
2f65175c6Sdrahn 
3f65175c6Sdrahn /*
4f65175c6Sdrahn  * Copyright (c) 1998 Christopher G. Demetriou.  All rights reserved.
5f65175c6Sdrahn  *
6f65175c6Sdrahn  * Redistribution and use in source and binary forms, with or without
7f65175c6Sdrahn  * modification, are permitted provided that the following conditions
8f65175c6Sdrahn  * are met:
9f65175c6Sdrahn  * 1. Redistributions of source code must retain the above copyright
10f65175c6Sdrahn  *    notice, this list of conditions and the following disclaimer.
11f65175c6Sdrahn  * 2. Redistributions in binary form must reproduce the above copyright
12f65175c6Sdrahn  *    notice, this list of conditions and the following disclaimer in the
13f65175c6Sdrahn  *    documentation and/or other materials provided with the distribution.
14f65175c6Sdrahn  * 3. All advertising materials mentioning features or use of this software
15f65175c6Sdrahn  *    must display the following acknowledgement:
16f65175c6Sdrahn  *      This product includes software developed by Christopher G. Demetriou
17f65175c6Sdrahn  *	for the NetBSD Project.
18f65175c6Sdrahn  * 4. The name of the author may not be used to endorse or promote products
19f65175c6Sdrahn  *    derived from this software without specific prior written permission
20f65175c6Sdrahn  *
21f65175c6Sdrahn  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22f65175c6Sdrahn  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23f65175c6Sdrahn  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24f65175c6Sdrahn  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25f65175c6Sdrahn  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26f65175c6Sdrahn  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27f65175c6Sdrahn  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28f65175c6Sdrahn  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29f65175c6Sdrahn  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30f65175c6Sdrahn  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31f65175c6Sdrahn  */
32f65175c6Sdrahn 
33f65175c6Sdrahn /*
34f65175c6Sdrahn  * PCI IDE controller driver (i386 machine-dependent portion).
35f65175c6Sdrahn  *
36f65175c6Sdrahn  * Author: Christopher G. Demetriou, March 2, 1998 (derived from NetBSD
37f65175c6Sdrahn  * sys/dev/pci/ppb.c, revision 1.16).
38f65175c6Sdrahn  *
39f65175c6Sdrahn  * See "PCI IDE Controller Specification, Revision 1.0 3/4/94" from the
40f65175c6Sdrahn  * PCI SIG.
41f65175c6Sdrahn  */
42f65175c6Sdrahn 
43f65175c6Sdrahn #include <sys/param.h>
44f65175c6Sdrahn #include <sys/systm.h>
45f65175c6Sdrahn #include <sys/device.h>
46f65175c6Sdrahn 
47f65175c6Sdrahn #include <dev/pci/pcireg.h>
48f65175c6Sdrahn #include <dev/pci/pcivar.h>
49f65175c6Sdrahn #include <dev/pci/pciidereg.h>
50f65175c6Sdrahn #include <dev/pci/pciidevar.h>
51f65175c6Sdrahn 
52f65175c6Sdrahn void *
pciide_machdep_compat_intr_establish(struct device * dev,struct pci_attach_args * pa,int chan,int (* func)(void *),void * arg)53f65175c6Sdrahn pciide_machdep_compat_intr_establish(struct device *dev,
54f65175c6Sdrahn     struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
55f65175c6Sdrahn {
56*859d5ed4Skrw 	panic("pciide_machdep_compat_intr_establish called");
57f65175c6Sdrahn 	return (NULL);
58f65175c6Sdrahn }
59f65175c6Sdrahn 
60f65175c6Sdrahn void
pciide_machdep_compat_intr_disestablish(pci_chipset_tag_t pc,void * cookie)61f65175c6Sdrahn pciide_machdep_compat_intr_disestablish(pci_chipset_tag_t pc, void *cookie)
62f65175c6Sdrahn {
63*859d5ed4Skrw 	panic("pciide_machdep_compat_intr_disestablish called");
64f65175c6Sdrahn }
65