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


 200         qlt_attach,
 201         qlt_detach,
 202         nodev,
 203         &qlt_cb_ops,
 204         NULL,
 205         ddi_power,
 206         qlt_quiesce
 207 };
 208 
 209 #ifndef PORT_SPEED_10G
 210 #define PORT_SPEED_10G          16
 211 #endif
 212 
 213 static struct modldrv modldrv = {
 214         &mod_driverops,
 215         QLT_NAME" "QLT_VERSION,
 216         &qlt_ops,
 217 };
 218 
 219 static struct modlinkage modlinkage = {
 220         MODREV_1, &modldrv, NULL
 221 };
 222 
 223 void *qlt_state = NULL;
 224 kmutex_t qlt_global_lock;
 225 static uint32_t qlt_loaded_counter = 0;
 226 
 227 static char *pci_speeds[] = { " 33", "-X Mode 1 66", "-X Mode 1 100",
 228                         "-X Mode 1 133", "--Invalid--",
 229                         "-X Mode 2 66", "-X Mode 2 100",
 230                         "-X Mode 2 133", " 66" };
 231 
 232 /* Always use 64 bit DMA. */
 233 static ddi_dma_attr_t qlt_queue_dma_attr = {
 234         DMA_ATTR_V0,            /* dma_attr_version */
 235         0,                      /* low DMA address range */
 236         0xffffffffffffffff,     /* high DMA address range */
 237         0xffffffff,             /* DMA counter register */
 238         64,                     /* DMA address alignment */
 239         0xff,                   /* DMA burstsizes */
 240         1,                      /* min effective DMA size */




 200         qlt_attach,
 201         qlt_detach,
 202         nodev,
 203         &qlt_cb_ops,
 204         NULL,
 205         ddi_power,
 206         qlt_quiesce
 207 };
 208 
 209 #ifndef PORT_SPEED_10G
 210 #define PORT_SPEED_10G          16
 211 #endif
 212 
 213 static struct modldrv modldrv = {
 214         &mod_driverops,
 215         QLT_NAME" "QLT_VERSION,
 216         &qlt_ops,
 217 };
 218 
 219 static struct modlinkage modlinkage = {
 220         MODREV_1, { &modldrv, NULL }
 221 };
 222 
 223 void *qlt_state = NULL;
 224 kmutex_t qlt_global_lock;
 225 static uint32_t qlt_loaded_counter = 0;
 226 
 227 static char *pci_speeds[] = { " 33", "-X Mode 1 66", "-X Mode 1 100",
 228                         "-X Mode 1 133", "--Invalid--",
 229                         "-X Mode 2 66", "-X Mode 2 100",
 230                         "-X Mode 2 133", " 66" };
 231 
 232 /* Always use 64 bit DMA. */
 233 static ddi_dma_attr_t qlt_queue_dma_attr = {
 234         DMA_ATTR_V0,            /* dma_attr_version */
 235         0,                      /* low DMA address range */
 236         0xffffffffffffffff,     /* high DMA address range */
 237         0xffffffff,             /* DMA counter register */
 238         64,                     /* DMA address alignment */
 239         0xff,                   /* DMA burstsizes */
 240         1,                      /* min effective DMA size */