From 064c4e515c418e348aa4533bd2f4196087e02ac3 Mon Sep 17 00:00:00 2001 From: jonathan Date: Tue, 22 Jul 1997 04:32:13 +0000 Subject: Create sys/dev/dec and cleanup sys/dev/tc: * Move clockvar.h (header file for generic clock code) to sys/dev/dec. * Move if_le_dec.c with DEC padded LANCE-dma (pmax/pmax, ioasic, vax 3400) to sys/dev/dec. Remove from sys/dev/tc. * Declare attribute le_dec_subr in /sys/dev/dec/files.dec, use if_le_dec.c when it's defined. * Move IOCTL asic declaration from pmax and Alpha MD machine files to sys/dev/tc/files.tc. * move TurboChannel and ioasic if_le attachments from pmax and Alpha machine config files to /sys/dev/tc/files.tc. Add le_dec_subr attribute. * Add if_le_dec attribute to if_le_ibus (pmax ds3100 pmax) LANCE attachment. --- sys/dev/dec/files.dec | 12 ++++++++++++ sys/dev/dec/if_le_dec.c | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 sys/dev/dec/files.dec (limited to 'sys/dev/dec') diff --git a/sys/dev/dec/files.dec b/sys/dev/dec/files.dec new file mode 100644 index 00000000000..5ed9feb342c --- /dev/null +++ b/sys/dev/dec/files.dec @@ -0,0 +1,12 @@ +# $NetBSD: files.dec,v 1.1 1997/07/22 04:32:20 jonathan Exp $ +# +# Config file and device description for machine-independent +# code for devices for Digital Equipment Corp. systems. +# Included by ports that need it. + +# Attribute for DEC lance padded-DMA copy functions. Lance attachments +# which need it should specify the le_de_subr attribute. +define le_dec_subr + +# DMA copy functions. Lance attachments qhich Decices +file dev/tc/if_le_dec.c le_dec_subr diff --git a/sys/dev/dec/if_le_dec.c b/sys/dev/dec/if_le_dec.c index 74a3250ad25..67769010508 100644 --- a/sys/dev/dec/if_le_dec.c +++ b/sys/dev/dec/if_le_dec.c @@ -1,6 +1,7 @@ -/* $NetBSD: if_le_dec.c,v 1.7 1997/06/16 03:46:35 jonathan Exp $ */ +/* $NetBSD: if_le_dec.c,v 1.8 1997/07/22 04:32:21 jonathan Exp $ */ /*- + * Copyright (c) 1997 Jonathan Stone. All rights reserved. * Copyright (c) 1995 Charles M. Hannum. All rights reserved. * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -154,7 +155,7 @@ le_dec_writereg(regptr, val) * 3 ways: * - contiguous (for the 3max and turbochannel option card) * - gap2, which means shorts (2 bytes) interspersed with short (2 byte) - * spaces (for the pmax) + * spaces (for the pmax, vax 3400, and ioasic LANCE descriptors) * - gap16, which means 16bytes interspersed with 16byte spaces * for buffers which must begin on a 32byte boundary (for 3min, maxine, * and alpha) -- cgit