cardbusreg.h (c669d6a0020850fffafe282a9492f16a786ea8a8) | cardbusreg.h (49f158ccc830688dc4f522c058ee8170e760d173) |
---|---|
1/* 2 * Copyright (c) 2000,2001 Jonathan Chen. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 63 unchanged lines hidden (view full) --- 72#define CARDBUS_EXROM_DATA_IMAGE_LENGTH 0x10 /* Image Length */ 73#define CARDBUS_EXROM_DATA_DATA_REV 0x12 /* Revision Level of Code/Data */ 74#define CARDBUS_EXROM_DATA_CODE_TYPE 0x14 /* Code Type */ 75#define CARDBUS_EXROM_DATA_INDICATOR 0x15 /* Indicator */ 76 77/* useful macros */ 78#define CARDBUS_CIS_ADDR(x) \ 79 (CARDBUS_CIS_ADDRMASK & (x)) | 1/* 2 * Copyright (c) 2000,2001 Jonathan Chen. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 63 unchanged lines hidden (view full) --- 72#define CARDBUS_EXROM_DATA_IMAGE_LENGTH 0x10 /* Image Length */ 73#define CARDBUS_EXROM_DATA_DATA_REV 0x12 /* Revision Level of Code/Data */ 74#define CARDBUS_EXROM_DATA_CODE_TYPE 0x14 /* Code Type */ 75#define CARDBUS_EXROM_DATA_INDICATOR 0x15 /* Indicator */ 76 77/* useful macros */ 78#define CARDBUS_CIS_ADDR(x) \ 79 (CARDBUS_CIS_ADDRMASK & (x)) |
80#define CARDBUS_CIS_SPACE(x) \ 81 (CARDBUS_CIS_ASIMASK & (x)) |
|
80#define CARDBUS_CIS_ASI_BAR(x) \ 81 (((CARDBUS_CIS_ASIMASK & (x))-1)*4+0x10) 82#define CARDBUS_CIS_ASI_ROM_IMAGE(x) \ 83 (((x) >> 28) & 0xf) 84 85#define CARDBUS_MAPREG_MEM_ADDR_MASK 0x0ffffff0 86#define CARDBUS_MAPREG_MEM_ADDR(mr) \ 87 ((mr) & CARDBUS_MAPREG_MEM_ADDR_MASK) 88#define CARDBUS_MAPREG_MEM_SIZE(mr) \ 89 (CARDBUS_MAPREG_MEM_ADDR(mr) & -CARDBUS_MAPREG_MEM_ADDR(mr)) | 82#define CARDBUS_CIS_ASI_BAR(x) \ 83 (((CARDBUS_CIS_ASIMASK & (x))-1)*4+0x10) 84#define CARDBUS_CIS_ASI_ROM_IMAGE(x) \ 85 (((x) >> 28) & 0xf) 86 87#define CARDBUS_MAPREG_MEM_ADDR_MASK 0x0ffffff0 88#define CARDBUS_MAPREG_MEM_ADDR(mr) \ 89 ((mr) & CARDBUS_MAPREG_MEM_ADDR_MASK) 90#define CARDBUS_MAPREG_MEM_SIZE(mr) \ 91 (CARDBUS_MAPREG_MEM_ADDR(mr) & -CARDBUS_MAPREG_MEM_ADDR(mr)) |