FreeBSD/sys/dev/cardbus/cardbus_cis.c
/*
 * Read the CIS data out of memory.  We indirect through the bus space
 * routines to ensure proper byte ordering conversions when necessary.
 */
Read the CIS data out of memory.  We indirect through the bus space
routines to ensure proper byte ordering conversions when necessary.
Read the CIS data out of memory . We indirect through the bus space routines to ensure proper byte ordering conversions when necessary .
static int
cardbus_read_tuple_mem(device_t cbdev, struct resource *res, uint32_t start,
    uint32_t *off, int *tupleid, int *len, uint8_t *tupledata)
{
	int ret;
	*tupleid = bus_read_1(res, start + *off);
	*len = bus_read_1(res, start + *off + 1);
	bus_read_region_1(res, *off + start + 2, tupledata, *len);
	ret = 0;
	*off += *len + 2;
	return (ret);
}
static int cardbus_read_tuple_mem ( device_t cbdev , struct resource * res , uint32_t start , uint32_t * off , int * tupleid , int * len , uint8_t * tupledata ) { int ret ; * tupleid = bus_read_1 ( res , start + * off ) ; * len = bus_read_1 ( res , start + * off + 1 ) ; bus_read_region_1 ( res , * off + start + 2 , tupledata , * len ) ; ret = 0 ; * off += * len + 2 ; return ( ret ) ; }
Read the CIS data out of memory.
Read the CIS data out of memory .