Use constants in <pccard/cis.h> for scannign the memory window with.
Approved by: imp
This commit is contained in:
parent
05ce3194c4
commit
3105a10149
@ -475,20 +475,20 @@ cis_config(struct cis *cp, unsigned char *p, int len)
|
||||
}
|
||||
}
|
||||
switch (CIS_FEAT_MEMORY(feat)) {
|
||||
case 0:
|
||||
case CIS_FEAT_MEM_NONE:
|
||||
break;
|
||||
case 1:
|
||||
case CIS_FEAT_MEM_LEN:
|
||||
conf->memspace = 1;
|
||||
conf->mem = xmalloc(sizeof(*conf->mem));
|
||||
conf->mem->length = tpl16(p) << 8;
|
||||
break;
|
||||
case 2:
|
||||
case CIS_FEAT_MEM_ADDR:
|
||||
conf->memspace = 1;
|
||||
conf->mem = xmalloc(sizeof(*conf->mem));
|
||||
conf->mem->length = tpl16(p) << 8;
|
||||
conf->mem->address = tpl16(p + 2) << 8;
|
||||
break;
|
||||
case 3: {
|
||||
case CIS_FEAT_MEM_WIN: {
|
||||
struct cis_memblk *mem;
|
||||
struct cis_memblk *last_mem = NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user