cardbus_cis.h revision 141412
155505Sshin/*- 255505Sshin * Copyright (c) 2000,2001 Jonathan Chen. 355505Sshin * All rights reserved. 455505Sshin * 555505Sshin * Redistribution and use in source and binary forms, with or without 655505Sshin * modification, are permitted provided that the following conditions 755505Sshin * are met: 855505Sshin * 1. Redistributions of source code must retain the above copyright 955505Sshin * notice, this list of conditions and the following disclaimer. 1055505Sshin * 2. Redistributions in binary form must reproduce the above copyright 1155505Sshin * notice, this list of conditions and the following disclaimer in the 1255505Sshin * documentation and/or other materials provided with the distribution. 1355505Sshin * 1455505Sshin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1555505Sshin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1655505Sshin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1755505Sshin * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1855505Sshin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1955505Sshin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2055505Sshin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2155505Sshin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2255505Sshin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2355505Sshin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2455505Sshin * SUCH DAMAGE. 2555505Sshin * 2655505Sshin * $FreeBSD: head/sys/dev/cardbus/cardbus_cis.h 141412 2005-02-06 21:03:13Z imp $ 27122107Sume */ 2855505Sshin 2955505Sshin/* 3055505Sshin * Cardbus CIS definitions 31119071Sobrien */ 3262583Sitojunint cardbus_do_cis(device_t, device_t); 3369640Sobrien 3459266Sstevestruct cis_tupleinfo; 3559266Ssteve 3659266Ssteve#define MAXTUPLESIZE 0x400 3759266Ssteve 3855505Sshin/* BAR */ 3962583Sitojun#define TPL_BAR_REG_ASI_MASK 0x07 4062583Sitojun#define TPL_BAR_REG_AS 0x10 4155505Sshin#define TPL_BAR_REG_PREFETCHABLE_ONLY 0x20 4255505Sshin#define TPL_BAR_REG_PREFETCHABLE_CACHEABLE 0x40 4362583Sitojun#define TPL_BAR_REG_PREFETCHABLE 0x60 4455505Sshin#define TPL_BAR_REG_BELOW1MB 0x80 4558906Sshin