Re: Bus Driver probe and attach device

2005-07-22 Thread Yuka Muromachi
It mean I have 2 way to do it? (please view the code below) CodecPresent = az_rw(sc, AZX_REG_STATESTS); for (idx=0; idx> idx) & 0x0001) { // alloc codec info // fill codec info device_t codec_dev = device_add_child(azbus_dev, NULL, -1); device_set_ivars(codec_de

Re: Bus Driver probe and attach device

2005-07-22 Thread takawata
In message <[EMAIL PROTECTED]>, $B >I'm trying to written Azalia (HD Audio) driver for freebsd now. > >The HDA controller is a standard controller, which can take max= >15 codecs. I'm planning made it be a bus driver (azalia bus). > >I tried to read the PCI, USB and Firewire driver code be s

Bus Driver probe and attach device

2005-07-21 Thread 室町優香
Hi: I'm trying to written Azalia (HD Audio) driver for freebsd now. The HDA controller is a standard controller, which can take max 15 codecs. I'm planning made it be a bus driver (azalia bus). I tried to read the PCI, USB and Firewire driver code be sample. It looks: 1. Detect codec which alr