You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

snp.h 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2010 VMware, Inc. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License as
  6. * published by the Free Software Foundation; either version 2 of the
  7. * License, or any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  17. */
  18. #ifndef _SNP_H
  19. #define _SNP_H
  20. /** @file
  21. *
  22. * SNP driver
  23. *
  24. */
  25. FILE_LICENCE ( GPL2_OR_LATER );
  26. #include <ipxe/device.h>
  27. #include <ipxe/netdevice.h>
  28. #include <ipxe/efi/Protocol/SimpleNetwork.h>
  29. /** A network device that consumes the EFI Simple Network Protocol */
  30. struct snp_device {
  31. /** Underlying simple network protocol instance */
  32. EFI_SIMPLE_NETWORK_PROTOCOL *snp;
  33. /** Generic device */
  34. struct device dev;
  35. /** Network device */
  36. struct net_device *netdev;
  37. /** State to put the snp in when removing the device */
  38. uint32 removal_state;
  39. };
  40. #endif /* _SNP_H */