• Andrew Morton's avatar
    [PATCH] move DAC960 GAM IOCTLs into a new device · bbf41765
    Andrew Morton authored
    From: Dave Olien <dmo@osdl.org>
    
    The DAC960 driver uses an ugly overloading of the O_NONBLOCK flag to
    support the controller's RAID configuration features.
    
    Opening "/dev/rd/c0d0" with the O_NONBLOCK flag set returns a file
    descriptor that can be used to do RAID control operations using ioctl().
    The normal ioctl operations are not availabe with that file descriptor.
    
    This patch removes that O_NONBLOCK overloading from DAC960_open() and
    DAC960_ioctl() functions.  It introduces a new "miscellaneous" device
    named /dev/dac960_gam.  It uses minor device number 252 of the miscellaneous
    character devices.
    
    The currently distrubted "Global Array Manager" server distrubted by
    LSIlogic on their web page page works only on RH7.3 or earlier.  It doesn't
    work under RH9.  There are probably some library incompatabilities.
    So, I don't view this patch as breaking anything that currently works.
    If this software package is ever brought up to date (which I doubt),
    then it can be modified to use this new device at that time.
    bbf41765
DAC960.c 254 KB