Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/fdc.c
          +++ new/usr/src/uts/common/io/fdc.c
↓ open down ↓ 173 lines elided ↑ open up ↑
 174  174          {   0, 0x0}
 175  175  };
 176  176  #endif
 177  177  
 178  178  static struct fdcmdinfo {
 179  179          char *cmdname;          /* command name */
 180  180          uchar_t ncmdbytes;      /* number of bytes of command */
 181  181          uchar_t nrsltbytes;     /* number of bytes in result */
 182  182          uchar_t cmdtype;                /* characteristics */
 183  183  } fdcmds[] = {
 184      -        "", 0, 0, 0,                    /* - */
 185      -        "", 0, 0, 0,                    /* - */
 186      -        "read_track", 9, 7, 1,          /* 2 */
 187      -        "specify", 3, 0, 3,             /* 3 */
 188      -        "sense_drv_status", 2, 1, 3,    /* 4 */
 189      -        "write", 9, 7, 1,               /* 5 */
 190      -        "read", 9, 7, 1,                /* 6 */
 191      -        "recalibrate", 2, 0, 2,         /* 7 */
 192      -        "sense_int_status", 1, 2, 3,    /* 8 */
 193      -        "write_del", 9, 7, 1,           /* 9 */
 194      -        "read_id", 2, 7, 2,             /* A */
 195      -        "", 0, 0, 0,                    /* - */
 196      -        "read_del", 9, 7, 1,            /* C */
 197      -        "format_track", 10, 7, 1,       /* D */
 198      -        "dump_reg", 1, 10, 4,           /* E */
 199      -        "seek", 3, 0, 2,                /* F */
 200      -        "version", 1, 1, 3,             /* 10 */
 201      -        "", 0, 0, 0,                    /* - */
 202      -        "perp_mode", 2, 0, 3,           /* 12 */
 203      -        "configure", 4, 0, 4,           /* 13 */
      184 +        {"", 0, 0, 0},                  /* - */
      185 +        {"", 0, 0, 0},                  /* - */
      186 +        {"read_track", 9, 7, 1},        /* 2 */
      187 +        {"specify", 3, 0, 3},           /* 3 */
      188 +        {"sense_drv_status", 2, 1, 3},  /* 4 */
      189 +        {"write", 9, 7, 1},             /* 5 */
      190 +        {"read", 9, 7, 1},              /* 6 */
      191 +        {"recalibrate", 2, 0, 2},       /* 7 */
      192 +        {"sense_int_status", 1, 2, 3},  /* 8 */
      193 +        {"write_del", 9, 7, 1},         /* 9 */
      194 +        {"read_id", 2, 7, 2},           /* A */
      195 +        {"", 0, 0, 0},                  /* - */
      196 +        {"read_del", 9, 7, 1},          /* C */
      197 +        {"format_track", 10, 7, 1},     /* D */
      198 +        {"dump_reg", 1, 10, 4},         /* E */
      199 +        {"seek", 3, 0, 2},              /* F */
      200 +        {"version", 1, 1, 3},           /* 10 */
      201 +        {"", 0, 0, 0},                  /* - */
      202 +        {"perp_mode", 2, 0, 3},         /* 12 */
      203 +        {"configure", 4, 0, 4},         /* 13 */
 204  204          /* relative seek */
 205  205  };
 206  206  
 207  207  
 208  208  static int
 209  209  fdc_bus_ctl(dev_info_t *, dev_info_t *, ddi_ctl_enum_t, void *, void *);
 210  210  static int get_ioaddr(dev_info_t *dip, int *ioaddr);
 211  211  static int get_unit(dev_info_t *dip, int *cntrl_num);
 212  212  
 213  213  struct bus_ops fdc_bus_ops = {
↓ open down ↓ 44 lines elided ↑ open up ↑
 258  258  
 259  259  extern struct mod_ops mod_driverops;
 260  260  
 261  261  static struct modldrv modldrv = {
 262  262          &mod_driverops,         /* Type of module. This one is a driver */
 263  263          "Floppy Controller",    /* Name of the module. */
 264  264          &fdc_ops,               /* Driver ops vector */
 265  265  };
 266  266  
 267  267  static struct modlinkage modlinkage = {
 268      -        MODREV_1, (void *)&modldrv, NULL
      268 +        MODREV_1, { (void *)&modldrv, NULL }
 269  269  };
 270  270  
 271  271  int
 272  272  _init(void)
 273  273  {
 274  274          int retval;
 275  275  
 276  276          if ((retval = ddi_soft_state_init(&fdc_state_head,
 277  277              sizeof (struct fdcntlr) + NFDUN * sizeof (struct fcu_obj), 0)) != 0)
 278  278                  return (retval);
↓ open down ↓ 3035 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX