usb_ethernet.h (184610) | usb_ethernet.h (185948) |
---|---|
1/* $FreeBSD: head/sys/dev/usb2/ethernet/usb2_ethernet.h 184610 2008-11-04 02:31:03Z alfred $ */ | 1/* $FreeBSD: head/sys/dev/usb2/ethernet/usb2_ethernet.h 185948 2008-12-11 23:13:02Z thompsa $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 46 unchanged lines hidden (view full) --- 56 uint8_t if_lladdr[ETHER_ADDR_LEN]; 57 uint8_t if_mhash; 58 uint8_t if_nhash; 59 uint8_t if_hash[USB_ETHER_HASH_MAX]; 60}; 61 62typedef void (usb2_ether_mchash_t)(struct usb2_ether_cc *cc, const uint8_t *ptr); 63 | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 46 unchanged lines hidden (view full) --- 56 uint8_t if_lladdr[ETHER_ADDR_LEN]; 57 uint8_t if_mhash; 58 uint8_t if_nhash; 59 uint8_t if_hash[USB_ETHER_HASH_MAX]; 60}; 61 62typedef void (usb2_ether_mchash_t)(struct usb2_ether_cc *cc, const uint8_t *ptr); 63 |
64struct mbuf *usb2_ether_get_mbuf(void); 65void usb2_ether_cc(struct ifnet *ifp, usb2_ether_mchash_t *fhash, struct usb2_ether_cc *cc); | 64struct mbuf *usb2_ether_get_mbuf(void); 65void usb2_ether_cc(struct ifnet *ifp, usb2_ether_mchash_t *fhash, 66 struct usb2_ether_cc *cc); |
66 67#endif /* _USB2_ETHERNET_H_ */ | 67 68#endif /* _USB2_ETHERNET_H_ */ |