firewire.h 597 B

12345678910111213141516171819202122232425
  1. #ifndef _NET_FIREWIRE_H
  2. #define _NET_FIREWIRE_H
  3. /* Pseudo L2 address */
  4. #define FWNET_ALEN 16
  5. union fwnet_hwaddr {
  6. u8 u[FWNET_ALEN];
  7. /* "Hardware address" defined in RFC2734/RF3146 */
  8. struct {
  9. __be64 uniq_id; /* EUI-64 */
  10. u8 max_rec; /* max packet size */
  11. u8 sspd; /* max speed */
  12. __be16 fifo_hi; /* hi 16bits of FIFO addr */
  13. __be32 fifo_lo; /* lo 32bits of FIFO addr */
  14. } __packed uc;
  15. };
  16. /* Pseudo L2 Header */
  17. #define FWNET_HLEN 18
  18. struct fwnet_header {
  19. u8 h_dest[FWNET_ALEN]; /* destination address */
  20. __be16 h_proto; /* packet type ID field */
  21. } __packed;
  22. #endif