Re: device_detach() on a device used by ixgbe driver (FreeBSD 7-STABLE through to 9-CURRENT)

2011-05-24 Thread Philip Soeberg
ely required. I am however not sure if we need this file's descriptions any longer, as the man pages seem far better? The attached file also patch nicely against RELENG_8, which is still open. I assume it is enough to submit this patch to the freebsd-hackers mailinglist? Philip Soeb

Re: device_detach() on a device used by ixgbe driver (FreeBSD 7-STABLE through to 9-CURRENT)

2011-05-23 Thread Philip Soeberg
On 23-05-2011 16:32, John Baldwin wrote: I assume this (transcanding from FreeBSD 7.0-STABLE through to FreeBSD 9-CURRENT) is in error? I would expect sys/dev/ixgbe/ixgbe.c's probe() function to return BUS_PROBE_DEFAULT, which is the "Base OS default driver".. Yes, that is true. If this is tr

device_detach() on a device used by ixgbe driver (FreeBSD 7-STABLE through to 9-CURRENT)

2011-05-23 Thread Philip Soeberg
Hi fellow FreeBSD hackers, I've just completed designing a new driver for the Intels IXGBE suite of network adapters, but is building my driver as a kernel module to be loaded after system boot. The current sys/dev/ixgbe/ixgbe.c driver which attach to Intels adapters return a zero in it's pr

Re: Runtime check for PAE option on BSD 6+ i386

2011-05-04 Thread Philip Soeberg
On 03-05-2011 19:43, Kostik Belousov wrote: On Tue, May 03, 2011 at 11:44:32AM -0400, John Baldwin wrote: On Tuesday, May 03, 2011 9:10:26 am Philip Soeberg wrote: Hi fellow FreeBSD hackers, I've been using the following poor-man's approach in my driver init for ages in an

Runtime check for PAE option on BSD 6+ i386

2011-05-03 Thread Philip Soeberg
Hi fellow FreeBSD hackers, I've been using the following poor-man's approach in my driver init for ages in an attempt at detecting PAE option on BSD 6 (or greater) i386 kernels, as I depend on dmabus(9) but provide a loadable kernel module only. >>> if (sizeof(void*) == 4) { if (((uint6

Re: pci_suspend/pci_resume of custom pcie board

2011-01-27 Thread Philip Soeberg
On 25-01-2011 19:55, John Baldwin wrote: Use this: pci_cfg_save(dev, dinfo, 0); pci_set_powerstate(dev, PCI_POWERSTATE_D3); /* do stuff */ /* Will set state to D0. */ pci_cfg_restore(dev, dinfo); We probably should create some wrapper routines (pci_save

pci_suspend/pci_resume of custom pcie board

2011-01-25 Thread Philip Soeberg
Hi, I'm in a particular problem where I need to set my custom pcie adapter into d3hot power-mode and a couple of seconds later reset it back to d0. The board has an FPGA directly attached to the pcie interface, and as I need to re-configure the FPGA on the fly, I have to ensure the datalink la