[BACK]Return to qd.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / qbus

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/qbus/qd.c between version 1.52 and 1.52.14.2

version 1.52, 2011/04/24 16:27:00 version 1.52.14.2, 2014/08/20 00:03:49
Line 114  struct qdflags {
Line 114  struct qdflags {
  * Softc struct to keep track of all states in this driver.   * Softc struct to keep track of all states in this driver.
  */   */
 struct  qd_softc {  struct  qd_softc {
         struct  device sc_dev;  
         bus_space_tag_t sc_iot;          bus_space_tag_t sc_iot;
         bus_space_handle_t sc_ioh;          bus_space_handle_t sc_ioh;
         bus_dma_tag_t   sc_dmat;          bus_dma_tag_t   sc_dmat;
Line 345  dev_type_poll(qdpoll);
Line 344  dev_type_poll(qdpoll);
 dev_type_kqfilter(qdkqfilter);  dev_type_kqfilter(qdkqfilter);
   
 const struct cdevsw qd_cdevsw = {  const struct cdevsw qd_cdevsw = {
         qdopen, qdclose, qdread, qdwrite, qdioctl,          .d_open = qdopen,
         qdstop, notty, qdpoll, nommap, qdkqfilter,          .d_close = qdclose,
           .d_read = qdread,
           .d_write = qdwrite,
           .d_ioctl = qdioctl,
           .d_stop = qdstop,
           .d_tty = notty,
           .d_poll = qdpoll,
           .d_mmap = nommap,
           .d_kqfilter = qdkqfilter,
           .d_discard = nodiscard,
           .d_flag = 0
 };  };
   
 /*  /*
Line 524  qdcninit(struct consdev *cndev)
Line 533  qdcninit(struct consdev *cndev)
 } /* qdcninit */  } /* qdcninit */
   
 /* see <sys/device.h> */  /* see <sys/device.h> */
 CFATTACH_DECL(qd, sizeof(struct qd_softc),  CFATTACH_DECL_NEW(qd, sizeof(struct qd_softc),
     qd_match, qd_attach, NULL, NULL);      qd_match, qd_attach, NULL, NULL);
   
 #define QD_RCSR(reg) \  #define QD_RCSR(reg) \
Line 549  qd_match(device_t parent, cfdata_t match
Line 558  qd_match(device_t parent, cfdata_t match
         struct qd_softc ssc;          struct qd_softc ssc;
         struct qd_softc *sc = &ssc;          struct qd_softc *sc = &ssc;
         struct uba_attach_args *ua = aux;          struct uba_attach_args *ua = aux;
         struct uba_softc *uh = (void *)parent;          struct uba_softc *uh = device_private(parent);
         int unit;          int unit;
         volatile struct dga *dga;       /* pointer to gate array structure */          volatile struct dga *dga;       /* pointer to gate array structure */
         int vector;          int vector;
Line 720  qd_match(device_t parent, cfdata_t match
Line 729  qd_match(device_t parent, cfdata_t match
 } /* qdprobe */  } /* qdprobe */
   
   
 void qd_attach(parent, self, aux)  void
            device_t parent, *self;  qd_attach(device_t parent, device_t self, void *aux)
            void *aux;  
 {  {
         struct uba_attach_args *ua = aux;          struct uba_attach_args *ua = aux;
         int unit;       /* QDSS module # for this call */          int unit;       /* QDSS module # for this call */

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.52.14.2

CVSweb <webmaster@jp.NetBSD.org>