Change DEVFS device naming convention for cuac*, ttyc*.

This commit is contained in:
David Greenman 1996-10-13 01:30:32 +00:00
parent 4364e32501
commit 7a28c2a8cd
3 changed files with 39 additions and 21 deletions

View File

@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: cy.c,v 1.37 1996/10/04 14:17:32 davidg Exp $
* $Id: cy.c,v 1.38 1996/10/13 01:09:16 davidg Exp $
*/
#include "cy.h"
@ -586,22 +586,28 @@ cyattach_common(cy_iobase, cy_align)
#ifdef DEVFS
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
unit, DV_CHR,
UID_ROOT, GID_WHEEL, 0600, "ttyc%n", unit);
UID_ROOT, GID_WHEEL, 0600, "ttyc%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
unit | CONTROL_INIT_STATE, DV_CHR,
UID_ROOT, GID_WHEEL, 0600, "ttyic%n", unit);
UID_ROOT, GID_WHEEL, 0600, "ttyic%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
unit | CONTROL_LOCK_STATE, DV_CHR,
UID_ROOT, GID_WHEEL, 0600, "ttylc%n", unit);
UID_ROOT, GID_WHEEL, 0600, "ttylc%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
unit | CALLOUT_MASK, DV_CHR,
UID_UUCP, GID_DIALER, 0660, "cuac%n", unit);
UID_UUCP, GID_DIALER, 0660, "cuac%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
UID_UUCP, GID_DIALER, 0660, "cuaic%n", unit);
UID_UUCP, GID_DIALER, 0660, "cuaic%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
UID_UUCP, GID_DIALER, 0660, "cualc%n", unit);
UID_UUCP, GID_DIALER, 0660, "cualc%n%n", adapter,
unit % CY_MAX_PORTS);
#endif
}
}

View File

@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: cy.c,v 1.37 1996/10/04 14:17:32 davidg Exp $
* $Id: cy.c,v 1.38 1996/10/13 01:09:16 davidg Exp $
*/
#include "cy.h"
@ -586,22 +586,28 @@ cyattach_common(cy_iobase, cy_align)
#ifdef DEVFS
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
unit, DV_CHR,
UID_ROOT, GID_WHEEL, 0600, "ttyc%n", unit);
UID_ROOT, GID_WHEEL, 0600, "ttyc%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
unit | CONTROL_INIT_STATE, DV_CHR,
UID_ROOT, GID_WHEEL, 0600, "ttyic%n", unit);
UID_ROOT, GID_WHEEL, 0600, "ttyic%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
unit | CONTROL_LOCK_STATE, DV_CHR,
UID_ROOT, GID_WHEEL, 0600, "ttylc%n", unit);
UID_ROOT, GID_WHEEL, 0600, "ttylc%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
unit | CALLOUT_MASK, DV_CHR,
UID_UUCP, GID_DIALER, 0660, "cuac%n", unit);
UID_UUCP, GID_DIALER, 0660, "cuac%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
UID_UUCP, GID_DIALER, 0660, "cuaic%n", unit);
UID_UUCP, GID_DIALER, 0660, "cuaic%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
UID_UUCP, GID_DIALER, 0660, "cualc%n", unit);
UID_UUCP, GID_DIALER, 0660, "cualc%n%n", adapter,
unit % CY_MAX_PORTS);
#endif
}
}

View File

@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: cy.c,v 1.37 1996/10/04 14:17:32 davidg Exp $
* $Id: cy.c,v 1.38 1996/10/13 01:09:16 davidg Exp $
*/
#include "cy.h"
@ -586,22 +586,28 @@ cyattach_common(cy_iobase, cy_align)
#ifdef DEVFS
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
unit, DV_CHR,
UID_ROOT, GID_WHEEL, 0600, "ttyc%n", unit);
UID_ROOT, GID_WHEEL, 0600, "ttyc%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
unit | CONTROL_INIT_STATE, DV_CHR,
UID_ROOT, GID_WHEEL, 0600, "ttyic%n", unit);
UID_ROOT, GID_WHEEL, 0600, "ttyic%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
unit | CONTROL_LOCK_STATE, DV_CHR,
UID_ROOT, GID_WHEEL, 0600, "ttylc%n", unit);
UID_ROOT, GID_WHEEL, 0600, "ttylc%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
unit | CALLOUT_MASK, DV_CHR,
UID_UUCP, GID_DIALER, 0660, "cuac%n", unit);
UID_UUCP, GID_DIALER, 0660, "cuac%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
UID_UUCP, GID_DIALER, 0660, "cuaic%n", unit);
UID_UUCP, GID_DIALER, 0660, "cuaic%n%n", adapter,
unit % CY_MAX_PORTS);
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
UID_UUCP, GID_DIALER, 0660, "cualc%n", unit);
UID_UUCP, GID_DIALER, 0660, "cualc%n%n", adapter,
unit % CY_MAX_PORTS);
#endif
}
}