History log of /freebsd-current/sys/dev/sbni/if_sbni_pci.c
Revision Date Author Comments
# fdafd315 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 5d9f60a3 09-May-2022 John Baldwin <jhb@FreeBSD.org>

sbni: Remove unused devclass arguments to DRIVER_MODULE.


# 9c11e6af 08-Apr-2022 John Baldwin <jhb@FreeBSD.org>

sbni: Use memset to clear flags structure in attach.

NFC, just less nausea-inducing.


# 1d0cadcc 08-Apr-2022 John Baldwin <jhb@FreeBSD.org>

sbni: Remove unused variable.


# 1683952d 01-Sep-2020 Mateusz Guzik <mjg@FreeBSD.org>

sbni: clean up empty lines in .c and .h files


# 6c3e542b 02-Mar-2016 Justin Hibbits <jhibbits@FreeBSD.org>

Allocate the PCI BAR resource with bus_alloc_resource_any()

We don't support allocating any other range with PCI BARs.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 26e46883 10-Sep-2008 John Baldwin <jhb@FreeBSD.org>

Resurrect the sbni(4) driver. Someone finally tested the MPSAFE patches and
the driver worked ok with them.

Tested by: friends of yar


# e9a31041 04-Jul-2008 John Baldwin <jhb@FreeBSD.org>

Remove the sbni(4) driver. No one responded to calls to test it on
current@ and stable@.


# 5d3f96f7 04-Jul-2008 John Baldwin <jhb@FreeBSD.org>

Make sbni(4) MPSAFE:
- Add a mutex to the softc and use it to protect the softc and device
hardware.
- Setup interrupt handler after attaching device to network stack.
- Use device_set_desc() rather than device_quiet() plus a manual printf
that simulates the normal probe printf.
- Axe next_sbni_unit and instead just leave room for two sbni devices for
each bus attachment.
- Don't bzero the already-zero'd softc.
- Add a detach method to the PCI driver.
- Add a lock to protect the list of available devices used to chain
interrupt handlers for dual port ISA cards.
- Remove unused watchdog routine.
- If if_alloc() fails, make sbni_attach() return an error rather than
panic'ing.
- Consolidate code to free bus resources into sbni_release_resources().
- Clear IFF_DRV_RUNNING|OACTIVE in stop() routine instead of in callers.
- Let ether_ioctl() handle SIOCSIFMTU.


# ef544f63 22-Feb-2007 Paolo Pisati <piso@FreeBSD.org>

o break newbus api: add a new argument of type driver_filter_t to
bus_setup_intr()

o add an int return code to all fast handlers

o retire INTR_FAST/IH_FAST

For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current

Reviewed by: many
Approved by: re@


# 5f96beb9 17-Mar-2004 Nate Lawson <njl@FreeBSD.org>

Convert callers to the new bus_alloc_resource_any(9) API.

Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde


# e27951b2 02-Sep-2003 John Baldwin <jhb@FreeBSD.org>

Use PCIR_BAR(x) instead of PCIR_MAPS.

Glanced over by: imp, gibbs
Tested by: i386 LINT


# 945ff31a 24-Aug-2003 David E. O'Brien <obrien@FreeBSD.org>

Use __FBSDID().
Also some minor style cleanups.


# 90cf0136 22-Aug-2003 Warner Losh <imp@FreeBSD.org>

Prefer new location of pci include files (which have only been in the
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.


# f246e4a1 15-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

- Express hard dependencies on bus (pci, isa, pccard) and
network layer (ether).
- Don't abuse module names to facilitate ifconfig module loading;
such abuse isn't really needed. (And if we do need type information
associated with a module then we should make it explicit and not
use hacks.)


# b9b7876d 28-Sep-2002 Poul-Henning Kamp <phk@FreeBSD.org>

This driver doesn't need to include <sys/bus_private.h> either.

Spotted by: FlexeLint


# ae9e184e 06-Aug-2002 Max Khon <fjoe@FreeBSD.org>

printf() formats fixes


# 0d13f401 05-Aug-2002 Max Khon <fjoe@FreeBSD.org>

Make driver portable:
- bus_space'ify
- generate fake ethernet address using read_random() instead of reading
from timer i/o ports

Other minor fixes:
- remove "hack" in connect_to_master()
- use M_ZERO
- remove unused variable in sbni_ioctl()
- properly release irq in sbni_attach_isa() on attach errors


# cc99b6cf 05-Aug-2002 Max Khon <fjoe@FreeBSD.org>

style fixes


# 937033e9 14-Jul-2002 Max Khon <fjoe@FreeBSD.org>

fix driver name in DRIVER_MODULE

MFC after: 3 days


# ea38b939 21-Nov-2001 Max Khon <fjoe@FreeBSD.org>

Add driver for Granch SBNI12-xx ISA and PCI network adapters.

MFC after: 1 week