Annotation of qemu/roms/ipxe/src/drivers/net/efi/snp.h, revision 1.1.1.1

1.1       root        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: 
                     19: #ifndef _SNP_H
                     20: #define _SNP_H
                     21: 
                     22: /** @file
                     23:  *
                     24:  * SNP driver
                     25:  *
                     26:  */
                     27: 
                     28: FILE_LICENCE ( GPL2_OR_LATER );
                     29: 
                     30: #include <ipxe/device.h>
                     31: #include <ipxe/netdevice.h>
                     32: #include <ipxe/efi/Protocol/SimpleNetwork.h>
                     33: 
                     34: /** A network device that consumes the EFI Simple Network Protocol */
                     35: struct snp_device {
                     36:        /** Underlying simple network protocol instance */
                     37:        EFI_SIMPLE_NETWORK_PROTOCOL *snp;
                     38: 
                     39:        /** Generic device */
                     40:        struct device dev;
                     41: 
                     42:        /** Network device */
                     43:        struct net_device *netdev;
                     44: 
                     45:        /** State to put the snp in when removing the device */
                     46:        uint32 removal_state;
                     47: };
                     48: 
                     49: #endif /* _SNP_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.