firewire.h 599 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _NET_FIREWIRE_H
  3. #define _NET_FIREWIRE_H
  4. #include <linux/types.h>
  5. /* Pseudo L2 address */
  6. #define FWNET_ALEN 16
  7. union fwnet_hwaddr {
  8. u8 u[FWNET_ALEN];
  9. /* "Hardware address" defined in RFC2734/RF3146 */
  10. struct {
  11. __be64 uniq_id; /* EUI-64 */
  12. u8 max_rec; /* max packet size */
  13. u8 sspd; /* max speed */
  14. u8 fifo[6]; /* FIFO addr */
  15. } __packed uc;
  16. };
  17. /* Pseudo L2 Header */
  18. #define FWNET_HLEN 18
  19. struct fwnet_header {
  20. u8 h_dest[FWNET_ALEN]; /* destination address */
  21. __be16 h_proto; /* packet type ID field */
  22. } __packed;
  23. #endif