The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/cardbus/cardbus_exrom.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* $NetBSD: cardbus_exrom.h,v 1.2 1999/12/15 12:28:54 kleink Exp $ */
    2 
    3 /*
    4  * Copyright (c) 1999 The NetBSD Foundation, Inc.
    5  * All rights reserved.
    6  *
    7  * This code is derived from software contributed to 
    8  * The NetBSD Foundation by Johan Danielsson.
    9  *
   10  * Redistribution and use in source and binary forms, with or without 
   11  * modification, are permitted provided that the following conditions 
   12  * are met: 
   13  *
   14  * 1. Redistributions of source code must retain the above copyright 
   15  *    notice, this list of conditions and the following disclaimer. 
   16  *
   17  * 2. Redistributions in binary form must reproduce the above copyright 
   18  *    notice, this list of conditions and the following disclaimer in the 
   19  *    documentation and/or other materials provided with the distribution. 
   20  *
   21  * 3. Neither the name of The NetBSD Foundation nor the names of its
   22  *    contributors may be used to endorse or promote products derived
   23  *    from this software without specific prior written permission.
   24  *
   25  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   26  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   27  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   28  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   29  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   30  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   31  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   32  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   33  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   34  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   35  * POSSIBILITY OF SUCH DAMAGE.
   36  */
   37 
   38 #ifndef _DEV_CARDBUS_CARDBUS_EXROM_H_
   39 #define _DEV_CARDBUS_CARDBUS_EXROM_H_
   40 
   41 /* PCI ROM header fields */
   42 #define CARDBUS_EXROM_SIGNATURE 0x00
   43 #define CARDBUS_EXROM_DATA_PTR  0x18
   44 
   45 /* PCI ROM data structure fields */
   46 #define CARDBUS_EXROM_DATA_SIGNATURE    0x00 /* Signature ("PCIR") */
   47 #define CARDBUS_EXROM_DATA_VENDOR_ID    0x04 /* Vendor Identification */
   48 #define CARDBUS_EXROM_DATA_DEVICE_ID    0x06 /* Device Identification */
   49 #define CARDBUS_EXROM_DATA_LENGTH       0x0a /* PCI Data Structure Length */
   50 #define CARDBUS_EXROM_DATA_REV          0x0c /* PCI Data Structure Revision */
   51 #define CARDBUS_EXROM_DATA_CLASS_CODE   0x0d /* Class Code */
   52 #define CARDBUS_EXROM_DATA_IMAGE_LENGTH 0x10 /* Image Length */
   53 #define CARDBUS_EXROM_DATA_DATA_REV     0x12 /* Revision Level of Code/Data */
   54 #define CARDBUS_EXROM_DATA_CODE_TYPE    0x14 /* Code Type */
   55 #define CARDBUS_EXROM_DATA_INDICATOR    0x15 /* Indicator */
   56 
   57 
   58 struct cardbus_rom_image {
   59     unsigned int        rom_image; /* image number */
   60     size_t              image_size;
   61     bus_space_tag_t     romt;
   62     bus_space_handle_t  romh;    /* subregion */
   63     SIMPLEQ_ENTRY(cardbus_rom_image) next;
   64 };
   65 
   66 SIMPLEQ_HEAD(cardbus_rom_image_head, cardbus_rom_image);
   67 
   68 int
   69 cardbus_read_exrom __P((bus_space_tag_t, bus_space_handle_t, 
   70                         struct cardbus_rom_image_head*));
   71 
   72 #endif /* !_DEV_CARDBUS_CARDBUS_EXROM_H_ */

Cache object: b26fd0322c35b471fe5c04ab5c3559b1


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.