/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1999-2000 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* These routines provide initialization, cleanup, and general
* access to vendor specific features on the OpenHCI adapter.
*/
#ifdef __cplusplus
extern "C" {
#endif
/* Vendor Id's */
/* Sun Microsystems Device Id's */
/*
* we will support up to a maximum of 6 different Vendor Specific register
* mappings. I would be surprised to see more than 1, but it is possible.
*/
/* Opaque handle */
/*
* Vendor Specific Info
* vendor_id - VendorID from PCI config space (0x0-0x1)
* device_id - DeviceID from PCI config space (0x2-0x3)
* revision_id - RevisionID from PCI config space (0x8)
* ohci_version - 1394 OpenHCI Version Register (0x0)
* ohci_vendor_id - 1394 OpenHCI Vendor ID Register (0x40)
*/
typedef struct hci1394_vendor_info_s {
/*
* structure to store vendor specific register address and handle. We will have
* one of these for each Vendor Specific register mapping.
*/
typedef struct hci1394_vendor_reg_s {
/*
* structure to track all of the vendor specific register mappings.
* ve_reg_count is the number of different register mappings. ve_reg_array is
* an array of these registers. If ve_reg_count = 2, ve_reg_array[0] will have
* the first register mapping and ve_reg_array[1] will have the second register
* mapping.
*/
typedef struct hci1394_vendor_s {
#ifdef __cplusplus
}
#endif
#endif /* _SYS_1394_ADAPTERS_HCI1394_VERSION_H */