Fixed handling of device flags. The real flags were never used.

Submitted by:	Michael Smith <msmith@atrad.adelaide.edu.au>
This commit is contained in:
bde 1996-04-13 18:33:04 +00:00
parent 6656815ec4
commit ece7fb1dfd

View File

@ -46,7 +46,7 @@
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
** $Id: userconfig.c,v 1.40 1996/02/04 10:03:19 pst Exp $
** $Id: userconfig.c,v 1.41 1996/04/07 17:56:53 bde Exp $
**/
/**
@ -334,6 +334,7 @@ setdev(DEV_LIST *dev, int enabled)
dev->device->id_drq = (short)dev->drq;
dev->device->id_maddr = (caddr_t)dev->maddr;
dev->device->id_msize = dev->msize;
dev->device->id_flags = dev->flags;
dev->device->id_enabled = enabled;
}
@ -361,6 +362,7 @@ getdevs(void)
scratch.drq = ap[i].id_drq;
scratch.maddr = (int)ap[i].id_maddr;
scratch.msize = ap[i].id_msize;
scratch.flags = ap[i].id_flags;
scratch.conflict_ok = ap[i].id_conflicts;
scratch.comment = DEV_DEVICE; /* admin stuff */
@ -384,6 +386,7 @@ getdevs(void)
scratch.drq = -2;
scratch.maddr = -2;
scratch.msize = -2;
scratch.flags = 0;
scratch.conflict_ok = 0; /* shouldn't conflict */
scratch.comment = DEV_DEVICE; /* is a device */
scratch.unit = 0; /* arbitrary number of them */
@ -2147,7 +2150,7 @@ visuserconfig(void)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: userconfig.c,v 1.40 1996/02/04 10:03:19 pst Exp $
* $Id: userconfig.c,v 1.41 1996/04/07 17:56:53 bde Exp $
*/
#include "scbus.h"