> I am porting a network driver from Linux to Solaris. > > I am eager to know if it is possible for Solaris to know PCI bus can > support 32 or 64 bit memory space? Linux can use pci_set_dma_mask(pdev, > DMA_64BIT_MASK) to test if it can access 64bit. > > Also, if my PCI card DMA can only access 32 bit address space, but > message block memory allocated by allocb() can be anywhere in a 64bit > OS. I am wondering if it possible to let OS know that such limitation > and create mblk_t in lower DMA accessible area? I know Linux can do > this by seting up a flag NETIF_F_HIGHDMA.
You're worried about the buffer associated with the mblk_t, and not the mblk_t itself, right? In that case, allocate your buffer using your allocator of choice, then use esballoc() or desballoc() to allocate the mblk_t using your previously-allocated buffer. -- meem _______________________________________________ networking-discuss mailing list [email protected]
