The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/ppbus/ppbus_device.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* $NetBSD: ppbus_device.h,v 1.6 2008/04/15 15:02:29 cegger Exp $ */
    2 
    3 #ifndef __PPBUS_DEVICE_H
    4 #define __PPBUS_DEVICE_H
    5 
    6 #include <sys/device.h>
    7 
    8 #include <dev/ppbus/ppbus_msq.h>
    9 
   10 
   11 /* Parallel Port Bus Device context. */
   12 struct ppbus_context {
   13         int valid;                      /* 1 if the struct is valid */
   14         int mode;                       /* XXX chipset operating mode */
   15         struct microseq *curpc;         /* pc in curmsq */
   16         struct microseq *curmsq;        /* currently executed microseqence */
   17 };
   18 
   19 /* Parallel Port Bus Device structure. */
   20 struct ppbus_device_softc {
   21         device_t sc_dev;
   22 
   23         u_int16_t mode;                 /* current mode of the device */
   24         u_int16_t capabilities;         /* ppbus capabilities */
   25 
   26         /* uint flags;                     flags */
   27         struct ppbus_context ctx;       /* context of the device */
   28 
   29                                         /* mode dependent get msq. If NULL,
   30                                          * IEEE1284 code is used */
   31         struct ppbus_xfer
   32                 get_xfer[PPBUS_MAX_XFER];
   33 
   34                                         /* mode dependent put msq. If NULL,
   35                                          * IEEE1284 code is used */
   36         struct ppbus_xfer
   37                 put_xfer[PPBUS_MAX_XFER];
   38 
   39         /* Each structure is a node in a list of child devices */
   40         SLIST_ENTRY(ppbus_device_softc) entries;
   41 };
   42 
   43 struct ppbus_attach_args {
   44         /* Available IEEE1284 modes */
   45         u_int16_t capabilities;
   46 
   47         /* Flags?
   48         u_int16_t flags;*/
   49 };
   50 
   51 #endif /* __PPBUS_DEVICE_H */

Cache object: 4b5672a3f30eecaff5fc1935eaabbe1b


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.