-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Staging: ipack: implement ipack device table.
The modaliases look like ipack:fXvNdM, where X is the format version (8 bit) and N and M are the vendor and device ID represented as 32 bit hexadecimal numbers each. Using 32 bits allows us to define IPACK_ANY_ID as (~0) without interfering with the valid ids. The resulting modalias string for ipoctal.ko looks like this (once ipoctal provides a device table): alias: ipack:f01v000000F0d00000048* alias: ipack:f01v000000F0d0000002A* alias: ipack:f01v000000F0d00000022* (output from modinfo) Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org> Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- Loading branch information
Jens Taprogge
authored and
Greg Kroah-Hartman
committed
Sep 4, 2012
1 parent
1f43d7b
commit 849e0ad
Showing
4 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* IndustryPack Fromat, Vendor and Device IDs. | ||
*/ | ||
|
||
/* ID section format versions */ | ||
#define IPACK_ID_VERSION_INVALID 0x00 | ||
#define IPACK_ID_VERSION_1 0x01 | ||
#define IPACK_ID_VERSION_2 0x02 | ||
|
||
/* Vendors and devices. Sort key: vendor first, device next. */ | ||
#define IPACK1_VENDOR_ID_RESERVED1 0x00 | ||
#define IPACK1_VENDOR_ID_RESERVED2 0xFF | ||
#define IPACK1_VENDOR_ID_UNREGISTRED01 0x01 | ||
#define IPACK1_VENDOR_ID_UNREGISTRED02 0x02 | ||
#define IPACK1_VENDOR_ID_UNREGISTRED03 0x03 | ||
#define IPACK1_VENDOR_ID_UNREGISTRED04 0x04 | ||
#define IPACK1_VENDOR_ID_UNREGISTRED05 0x05 | ||
#define IPACK1_VENDOR_ID_UNREGISTRED06 0x06 | ||
#define IPACK1_VENDOR_ID_UNREGISTRED07 0x07 | ||
#define IPACK1_VENDOR_ID_UNREGISTRED08 0x08 | ||
#define IPACK1_VENDOR_ID_UNREGISTRED09 0x09 | ||
#define IPACK1_VENDOR_ID_UNREGISTRED10 0x0A | ||
#define IPACK1_VENDOR_ID_UNREGISTRED11 0x0B | ||
#define IPACK1_VENDOR_ID_UNREGISTRED12 0x0C | ||
#define IPACK1_VENDOR_ID_UNREGISTRED13 0x0D | ||
#define IPACK1_VENDOR_ID_UNREGISTRED14 0x0E | ||
#define IPACK1_VENDOR_ID_UNREGISTRED15 0x0F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters