diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-03-29 13:17:46 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-03-29 13:21:25 +0200 |
commit | 86156357706b3c741c6b5feda1d36d8687c660de (patch) | |
tree | 35fa025a58f2489827d1afb275a632465fbb7daf /device | |
parent | 1e90662dd80c64de27b432c9d6911fad937da804 (diff) | |
download | gnumach-86156357706b3c741c6b5feda1d36d8687c660de.tar.gz gnumach-86156357706b3c741c6b5feda1d36d8687c660de.tar.bz2 gnumach-86156357706b3c741c6b5feda1d36d8687c660de.zip |
64bit: fix warnings
* device/net_io.h (net_set_filter, ethernet_priority): Add prototypes.
* device/subrs.h: Include <device/if_hdr.h>.
(if_init_queues): Add prototype.
* i386/i386/model_dep.h (machine_relax): Add prototype.
* i386/i386/trap.c (i386_astintr): Move mycpu variable definition to
where it is used.
* i386/i386at/model_dep.c (i386at_init): Likewise for nb_direct, addr,
delta.
* i386/xen/xen.c (return_to_iret): Change type to char[].
* xen/console.c: Include <i386at/kd.h>.
* xen/evt.c (hyp_evt_handler): Cast NEVNT to int.
* xen/grant.c: Include <model_dep.h>.
(hyp_grant_takeback, hyp_grant_init): Fix print format.
* xen/net.c: Include <device/subrs.h>.
(paranoia): Remove variable.
(hyp_net_init, device_close, device_open): Cast nd - vif_data to int.
Fix print format.
* xen/store.c (store_put): Cast sizeof to int.
* xen/time.c: Include "xen.h".
* xen/xen.h (hypclock_machine_intr): Add prototype.
Diffstat (limited to 'device')
-rw-r--r-- | device/net_io.h | 10 | ||||
-rw-r--r-- | device/subrs.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/device/net_io.h b/device/net_io.h index 5baf0678..9468e34b 100644 --- a/device/net_io.h +++ b/device/net_io.h @@ -109,6 +109,14 @@ net_do_filter( unsigned int data_count, const char * header); /* CSPF */ +io_return_t +net_set_filter( + struct ifnet *ifp, + ipc_port_t rcv_port, + int priority, + filter_t *filter, + unsigned int filter_count); + extern int bpf_do_filter( net_rcv_port_t infp, @@ -149,4 +157,6 @@ int bpf_match ( net_hash_entry_t **hash_headpp, net_hash_entry_t *entpp); +boolean_t ethernet_priority(const ipc_kmsg_t kmsg); + #endif /* _DEVICE_NET_IO_H_ */ diff --git a/device/subrs.h b/device/subrs.h index 680aaa6f..60ea6518 100644 --- a/device/subrs.h +++ b/device/subrs.h @@ -27,6 +27,9 @@ #define _SUBRS_H_ #include <mach/std_types.h> +#include <device/if_hdr.h> + +extern void if_init_queues(struct ifnet *ifp); extern void sleep (vm_offset_t channel, int priority); extern void wakeup (vm_offset_t channel); |