Changeset 99cac86 in buchla-68k for libcio/open.c


Ignore:
Timestamp:
07/16/2017 11:27:12 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
d60f436
Parents:
ea232f9
Message:

Simplify kind handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/open.c

    rea232f9 r99cac86  
    88#include "ram.h"
    99
    10 static struct device condev  = { 2, 2, 1, 0, _nopo  };
    11 static struct device filedev = { 1, 1, 0, 1, _fileop };
     10static struct device condev  = { 2, 2, 1, 0, _nopo,   CON_DEV };
     11static struct device filedev = { 1, 1, 0, 1, _fileop,      -1 };
    1212
    1313/*
     
    1919static struct devtabl devtabl[] = {
    2020
    21         { "con:", &condev,  &devtabl[0], CON_DEV },     /* console device */
    22         { "CON:", &condev,  &devtabl[1], CON_DEV },
    23 
    24         {      0, &filedev,        NULL,      -1 }      /* this MUST be the last entry */
     21        { "con:", &condev  },   /* console device */
     22        { "CON:", &condev  },
     23
     24        {      0, &filedev }    /* this MUST be the last entry */
    2525};
    2626
     
    8080        /* setup the channel table entries */
    8181
    82         chp->c_arg   = dp->d_arg;
     82        chp->c_arg   = (io_arg)(int32_t)dp->d_dev->d_kind;
    8383        chp->c_ioctl = dev->d_ioctl;
    8484        chp->c_seek  = dev->d_seek;
Note: See TracChangeset for help on using the changeset viewer.