1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Better comment for the product ID thing.

This commit is contained in:
Warner Losh 2002-10-07 06:35:04 +00:00
parent da7b83f9ea
commit c6a6193f79
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104604

View File

@ -716,10 +716,13 @@ pccard_parse_cis_tuple(struct pccard_tuple *tuple, void *arg)
state->card->manufacturer = pccard_tuple_read_2(tuple, 0);
state->card->product = pccard_tuple_read_2(tuple, 2);
/*
* This is for xe driver. But not better.
* This is for xe driver. But not limited to that driver.
* In PC Card Standard,
* Manufacturer ID: 2byte.
* Product ID: 2byte usually, but no limited.
* Product ID: typically 2bytes, but there's no limit on its
* size. prodext is a two byte field, so maybe we should
* also handle the '6' case. So far no cards have surfaced
* with a length of '6'.
*/
if (tuple->length == 5 ) {
state->card->prodext = pccard_tuple_read_1(tuple, 4);