freebsd-nq/sys/i386
Doug Ambrisko 060e488247 Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
Add back in a scheme to emulate old type major/minor numbers via hooks into
stat, linprocfs to return major/minors that Linux app's expect.  Currently
only /dev/null is always registered.  Drivers can register via the Linux
type shim similar to the ioctl shim but by using
linux_device_register_handler/linux_device_unregister_handler functions.
The structure is:

    struct linux_device_handler {
        char    *bsd_driver_name;
        char    *linux_driver_name;
        char    *bsd_device_name;
        char    *linux_device_name;
        int     linux_major;
        int     linux_minor;
        int     linux_char_device;
    };

Linprocfs uses this to display the major number of the driver.  The
soon to be available linsysfs will use it to fill in the driver name.
Linux_stat uses it to translate the major/minor into Linux type values.

Note major numbers are dynamically assigned via passing in a -1 for
the major number so we don't need to keep track of them.

This is somewhat needed due to us switching to our devfs.  MegaCli
will not run until I add in the linsysfs and mfi Linux compat changes.

Sponsored by:	IronPort Systems
2006-05-05 16:10:45 +00:00
..
acpica If the XSDT address in the RSDP for an ACPI 2.0 machine is NULL, then fall 2006-03-27 15:59:48 +00:00
bios Fix build (including both asm.h and asmacros.h is evil). 2005-07-22 15:01:07 +00:00
compile
conf add ath and wlan crypto support 2006-05-03 18:13:11 +00:00
cpufreq Add frequency-voltage tables for Intel 778, 758, 773, 753, and 733J 2006-02-25 04:55:38 +00:00
i386 Allow bus_dmamap_load() to pass ENOMEM back to the caller. This puts it into 2006-05-03 04:14:17 +00:00
ibcs2 Regenerate. 2006-02-06 22:15:00 +00:00
include Add various constants for the PAT MSR and the PAT PTE and PDE flags. 2006-05-01 22:07:00 +00:00
isa Correct a local information leakage bug affecting AMD FPUs. 2006-04-19 07:00:19 +00:00
linux Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy. 2006-05-05 16:10:45 +00:00
pci - Make pcib_devclass private to sys/dev/pci/pci_pci.c and change all the 2006-01-06 19:22:19 +00:00
svr4 Use svr4_si_{addr,code,errno,signo,trap} in preference to si_{...}. 2005-10-19 14:59:54 +00:00
xbox Committed the xbox syscons(8)-able console driver. 2006-03-03 14:52:57 +00:00
Makefile