summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorfsmp <fsmp@FreeBSD.org>1997-08-21 07:05:54 +0000
committerfsmp <fsmp@FreeBSD.org>1997-08-21 07:05:54 +0000
commit5f207d9786f1b228b04603b7df72f83da295c3ed (patch)
treeaaf624afb0bab0528a5673e16bbf354a16d3b072 /sys
parent9a7cf30825bb8f5c255d09ef4f040d428b54ec1b (diff)
downloadFreeBSD-src-5f207d9786f1b228b04603b7df72f83da295c3ed.zip
FreeBSD-src-5f207d9786f1b228b04603b7df72f83da295c3ed.tar.gz
A few more casts and a function declaration for warning free kernel builds.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pcivar.h3
-rw-r--r--sys/pci/pci_compat.c4
-rw-r--r--sys/pci/pcivar.h3
3 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index 4bb8496..9b1db34 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id$
+ * $Id: pcivar.h,v 1.2 1997/08/21 06:54:09 smp Exp smp $
*
*/
@@ -199,5 +199,6 @@ int pci_map_mem (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa);
int pci_map_int (pcici_t tag, pci_inthand_t *func, void *arg, unsigned *maskptr);
int pci_unmap_int (pcici_t tag);
int pci_register_lkm (struct pci_device *dvp, int if_revision);
+void pci_configure (void);
#endif /* PCI_COMPAT */
diff --git a/sys/pci/pci_compat.c b/sys/pci/pci_compat.c
index dc726f5..d72c7fa 100644
--- a/sys/pci/pci_compat.c
+++ b/sys/pci/pci_compat.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pci_compat.c,v 1.3 1997/05/30 20:58:04 se Exp $
+ * $Id: pci_compat.c,v 1.2 1997/08/21 07:00:12 smp Exp smp $
*
*/
@@ -169,7 +169,7 @@ pci_map_int(pcici_t cfg, pci_inthand_t *func, void *arg, unsigned *maskptr)
void *dev_instance = (void *)-1; /* XXX use cfg->devdata */
void *idesc;
- idesc = intr_create(dev_instance, irq, func, arg, maskptr, 0);
+ idesc = intr_create(dev_instance, irq, (inthand2_t*)func, arg, maskptr, 0);
return (intr_connect(idesc) == 0);
}
return (1);
diff --git a/sys/pci/pcivar.h b/sys/pci/pcivar.h
index 4bb8496..9b1db34 100644
--- a/sys/pci/pcivar.h
+++ b/sys/pci/pcivar.h
@@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id$
+ * $Id: pcivar.h,v 1.2 1997/08/21 06:54:09 smp Exp smp $
*
*/
@@ -199,5 +199,6 @@ int pci_map_mem (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa);
int pci_map_int (pcici_t tag, pci_inthand_t *func, void *arg, unsigned *maskptr);
int pci_unmap_int (pcici_t tag);
int pci_register_lkm (struct pci_device *dvp, int if_revision);
+void pci_configure (void);
#endif /* PCI_COMPAT */
OpenPOWER on IntegriCloud