Re: Composite PCI devices in FreeBSD (mfd in Linux)

2018-12-19 Thread Ian Lepore
On Wed, 2018-12-19 at 14:35 -0500, Anthony Jenkins wrote: > On 12/19/18 10:41 AM, Anthony Jenkins wrote: > > > > [snip] > > > > I'm not feeling too confident about the condition of the FreeBSD > > ig4  > > driver; the PCI attach code was calling pci_alloc_msi() wrong, > > passing  > > a pointer

Re: Composite PCI devices in FreeBSD (mfd in Linux)

2018-12-19 Thread Anthony Jenkins
On 12/19/18 10:41 AM, Anthony Jenkins wrote: [snip] I'm not feeling too confident about the condition of the FreeBSD ig4 driver; the PCI attach code was calling pci_alloc_msi() wrong, passing a pointer to the rid (0) instead of a pointer to a count variable, and not passing

Re: Composite PCI devices in FreeBSD (mfd in Linux)

2018-12-19 Thread Anthony Jenkins
On 12/10/18 3:57 PM, John Baldwin wrote: On 12/10/18 12:19 PM, Ian Lepore wrote: On Mon, 2018-12-10 at 14:42 -0500, Anthony Jenkins wrote: On 12/10/18 1:26 PM, John Baldwin wrote: On 12/10/18 9:00 AM, Anthony Jenkins wrote: Hi all, I'm trying to port an Intel PCI I2C controller from Linux

Re: Composite PCI devices in FreeBSD (mfd in Linux)

2018-12-11 Thread Anthony Jenkins
On 12/11/18 9:02 AM, Emiel Kollof wrote: Anthony Jenkins schreef op 2018-12-10 18:00: Hi all, I'm trying to port an Intel PCI I2C controller from Linux to FreeBSD.  Linux represents this device as an MFD (multi-function device), meaning it has these "sub-devices" that can be handed off to

Re: Composite PCI devices in FreeBSD (mfd in Linux)

2018-12-11 Thread Emiel Kollof
Anthony Jenkins schreef op 2018-12-10 18:00: Hi all, I'm trying to port an Intel PCI I2C controller from Linux to FreeBSD. Linux represents this device as an MFD (multi-function device), meaning it has these "sub-devices" that can be handed off to other drivers to actually attach devices

Re: Composite PCI devices in FreeBSD (mfd in Linux)

2018-12-10 Thread John Baldwin
On 12/10/18 12:19 PM, Ian Lepore wrote: > On Mon, 2018-12-10 at 14:42 -0500, Anthony Jenkins wrote: >> On 12/10/18 1:26 PM, John Baldwin wrote: >>> >>> On 12/10/18 9:00 AM, Anthony Jenkins wrote: Hi all, I'm trying to port an Intel PCI I2C controller from Linux to FreeBSD.

Re: Composite PCI devices in FreeBSD (mfd in Linux)

2018-12-10 Thread Ian Lepore
On Mon, 2018-12-10 at 14:42 -0500, Anthony Jenkins wrote: > On 12/10/18 1:26 PM, John Baldwin wrote: > > > > On 12/10/18 9:00 AM, Anthony Jenkins wrote: > > > > > > Hi all, > > > > > > I'm trying to port an Intel PCI I2C controller from Linux to > > > FreeBSD. > > > Linux represents this device

Re: Composite PCI devices in FreeBSD (mfd in Linux)

2018-12-10 Thread Anthony Jenkins
On 12/10/18 1:26 PM, John Baldwin wrote: On 12/10/18 9:00 AM, Anthony Jenkins wrote: Hi all, I'm trying to port an Intel PCI I2C controller from Linux to FreeBSD. Linux represents this device as an MFD (multi-function device), meaning it has these "sub-devices" that can be handed off to other

Re: Composite PCI devices in FreeBSD (mfd in Linux)

2018-12-10 Thread John Baldwin
On 12/10/18 9:00 AM, Anthony Jenkins wrote: > Hi all, > > I'm trying to port an Intel PCI I2C controller from Linux to FreeBSD.  > Linux represents this device as an MFD (multi-function device), meaning > it has these "sub-devices" that can be handed off to other drivers to > actually attach

Composite PCI devices in FreeBSD (mfd in Linux)

2018-12-10 Thread Anthony Jenkins
Hi all, I'm trying to port an Intel PCI I2C controller from Linux to FreeBSD.  Linux represents this device as an MFD (multi-function device), meaning it has these "sub-devices" that can be handed off to other drivers to actually attach devices to the system.  The Linux "super" PCI device is