In message: <[EMAIL PROTECTED]> Bruce M Simpson <[EMAIL PROTECTED]> writes: : How do I map in attribute and common memory blocks from a PCMCIA card?
You generally don't map attribute memory. With one exception (the raylan cards), there's no hardware in the attribute memory section and it is just used to store the cis. : Is this done on my behalf by the pcic(4) driver? Yes. : Does it scan the CIS tuples for me and perform the appropriate allocations? Yes. : If so, how do I get at the resource? : If not, how would I go about doing this myself in the driver? bus_alloc_resource() : And what would I want to put in my driver's xxx_probe() routine? Ideally, you'd just match the OEM ID and vendor info of the card. Less ideally, you'd match the strings in the CIS. : I've been looking over the ray(4) and xe(4) drivers, which have given me : some hints, but I'd appreciate clarification. Those are the two worst ones to look at. Don't do what they do, as the ray(4) hardware is weird and the xe(4) driver was written before we could read the cis from the kernel. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message