Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hyperv/netvsc/hv_rndis_filter.h
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | typedef struct rndis_device_ { | ||||
struct mtx req_lock; | struct mtx req_lock; | ||||
STAILQ_HEAD(RQ, rndis_request_) myrequest_list; | STAILQ_HEAD(RQ, rndis_request_) myrequest_list; | ||||
uint8_t hw_mac_addr[HW_MACADDR_LEN]; | uint8_t hw_mac_addr[HW_MACADDR_LEN]; | ||||
} rndis_device; | } rndis_device; | ||||
typedef struct rndis_filter_packet_ { | |||||
void *completion_context; | |||||
/* No longer used */ | |||||
pfn_on_send_rx_completion on_completion; | |||||
rndis_msg message; | |||||
} rndis_filter_packet; | |||||
/* | /* | ||||
* Externs | * Externs | ||||
*/ | */ | ||||
extern int hv_rf_on_receive(struct hv_device *device, netvsc_packet *pkt); | extern int hv_rf_on_receive(netvsc_dev *net_dev, struct hv_device *device, netvsc_packet *pkt); | ||||
extern int hv_rf_on_device_add(struct hv_device *device, void *additl_info); | extern int hv_rf_on_device_add(struct hv_device *device, void *additl_info); | ||||
extern int hv_rf_on_device_remove(struct hv_device *device, | extern int hv_rf_on_device_remove(struct hv_device *device, | ||||
boolean_t destroy_channel); | boolean_t destroy_channel); | ||||
extern int hv_rf_on_open(struct hv_device *device); | extern int hv_rf_on_open(struct hv_device *device); | ||||
extern int hv_rf_on_close(struct hv_device *device); | extern int hv_rf_on_close(struct hv_device *device); | ||||
extern int hv_rf_on_send(struct hv_device *device, netvsc_packet *pkt); | |||||
royger: Why all those externs in function declarations? | |||||
#endif /* __HV_RNDIS_FILTER_H__ */ | #endif /* __HV_RNDIS_FILTER_H__ */ | ||||
Why all those externs in function declarations?