|
|
uint_t ddi_mmap_get_model(void);
Solaris DDI specific (Solaris DDI).
struct data32 {
int len;
caddr32_t addr;
};
struct data {
int len;
caddr_t addr;
};
xxmmap(dev_t dev, off_t off, int prot) {
struct data dtc; /* a local copy for clash resolution */
struct data *dp = (struct data *)shared_area;
#ifdef _MULTI_DATAMODEL
switch (ddi_model_convert_from(ddi_mmap_get_model())) {
case DDI_MODEL_ILP32:
{
struct data32 *da32p;
da32p = (struct data32 *)shared_area;
dp = &dtc;
dp->len = da32p->len;
dp->address = da32->address;
break;
}
case DDI_MODEL_NONE:
break;
}
#endif /* _MULTI_DATAMODEL */
/* continues along using dp */
....
}
|
|
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 07/October/97