summaryrefslogtreecommitdiffstats
path: root/sys/i386/eisa
diff options
context:
space:
mode:
authorfsmp <fsmp@FreeBSD.org>1997-08-21 07:36:44 +0000
committerfsmp <fsmp@FreeBSD.org>1997-08-21 07:36:44 +0000
commite657c8ade44ab8acf0757c10bb72906338308d03 (patch)
tree6d618f99b4ca60fa026293044ee1309e48c13790 /sys/i386/eisa
parentd4c3e294fb3bd790657203960c0aa0f72bbf22e3 (diff)
downloadFreeBSD-src-e657c8ade44ab8acf0757c10bb72906338308d03.zip
FreeBSD-src-e657c8ade44ab8acf0757c10bb72906338308d03.tar.gz
Add several casts and include several header files to eliminate compiler
warnings.
Diffstat (limited to 'sys/i386/eisa')
-rw-r--r--sys/i386/eisa/eisaconf.c5
-rw-r--r--sys/i386/eisa/if_vx_eisa.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/i386/eisa/eisaconf.c b/sys/i386/eisa/eisaconf.c
index 18f4681..7153df6 100644
--- a/sys/i386/eisa/eisaconf.c
+++ b/sys/i386/eisa/eisaconf.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: eisaconf.c,v 1.27 1997/03/13 18:04:02 joerg Exp $
+ * $Id: eisaconf.c,v 1.28 1997/07/20 06:31:09 bde Exp $
*/
#include "opt_eisa.h"
@@ -42,6 +42,9 @@
#include <i386/isa/icu.h> /* Hmmm. Interrupt stuff? */
+#include <i386/isa/intr_machdep.h>
+#include <sys/interrupt.h>
+
struct eisa_device_node{
struct eisa_device dev;
struct eisa_device_node *next;
diff --git a/sys/i386/eisa/if_vx_eisa.c b/sys/i386/eisa/if_vx_eisa.c
index f185164..73735f5 100644
--- a/sys/i386/eisa/if_vx_eisa.c
+++ b/sys/i386/eisa/if_vx_eisa.c
@@ -163,7 +163,7 @@ vx_eisa_attach(e_dev)
level_intr = FALSE;
- if (eisa_reg_intr(e_dev, irq, vxintr, (void *) sc, &net_imask,
+ if (eisa_reg_intr(e_dev, irq, (void (*)(void *)) vxintr, (void *) sc, &net_imask,
/* shared == */ level_intr)) {
vxfree(sc);
return -1;
@@ -176,7 +176,7 @@ vx_eisa_attach(e_dev)
if (eisa_enable_intr(e_dev, irq)) {
vxfree(sc);
- eisa_release_intr(e_dev, irq, vxintr);
+ eisa_release_intr(e_dev, irq, (void (*)(void *)) vxintr);
return -1;
}
return 0;
OpenPOWER on IntegriCloud