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


 393  * or all fail.  i82365SL is assumed if failed.
 394  */
 395 static int pcic_ci_cirrus(pcicdev_t *);
 396 static int pcic_ci_vadem(pcicdev_t *);
 397 static int pcic_ci_ricoh(pcicdev_t *);
 398 
 399 int (*pcic_ci_funcs[])(pcicdev_t *) = {
 400         pcic_ci_cirrus,
 401         pcic_ci_vadem,
 402         pcic_ci_ricoh,
 403         NULL
 404 };
 405 
 406 static struct modldrv modldrv = {
 407         &mod_driverops,             /* Type of module. This one is a driver */
 408         "PCIC PCMCIA adapter driver",   /* Name of the module. */
 409         &pcic_devops,               /* driver ops */
 410 };
 411 
 412 static struct modlinkage modlinkage = {
 413         MODREV_1, (void *)&modldrv, NULL
 414 };
 415 
 416 int
 417 _init()
 418 {
 419         int stat;
 420 
 421         /* Allocate soft state */
 422         if ((stat = ddi_soft_state_init(&pcic_soft_state_p,
 423             SOFTC_SIZE, 2)) != DDI_SUCCESS)
 424                 return (stat);
 425 
 426         if ((stat = mod_install(&modlinkage)) != 0)
 427                 ddi_soft_state_fini(&pcic_soft_state_p);
 428 
 429         return (stat);
 430 }
 431 
 432 int
 433 _fini()


4992         {"mem4-ehi  ", 0x33, "\020\7WS0\10WS1"},
4993         {"card4-low ", 0x34},
4994         {"card4-hi  ", 0x35, "\020\7AM\10WP"},
4995         {"mpage0    ", 0x40},
4996         {"mpage1    ", 0x41},
4997         {"mpage2    ", 0x42},
4998         {"mpage3    ", 0x43},
4999         {"mpage4    ", 0x44},
5000         {NULL},
5001 };
5002 
5003 static struct intel_regs cregs[] = {
5004         {"misc-ctl1 ", 0x16, "\20\2VCC3\3PMI\4PSI\5SPKR\10INPACK"},
5005         {"fifo      ", 0x17, "\20\6DIOP\7DMEMP\10EMPTY"},
5006         {"misc-ctl2 ", 0x1e, "\20\1XCLK\2LOW\3SUSP\4CORE5V\5TCD\10RIOUT"},
5007         {"chip-info ", 0x1f, "\20\6DUAL"},
5008         {"IO-offlow0", 0x36},
5009         {"IO-offhi0 ", 0x37},
5010         {"IO-offlow1", 0x38},
5011         {"IO-offhi1 ", 0x39},
5012         NULL,
5013 };
5014 
5015 static struct intel_regs cxregs[] = {
5016         {"ext-ctl-1 ", 0x03,
5017                 "\20\1VCCLCK\2AUTOCLR\3LED\4INVIRQC\5INVIRQM\6PUC"},
5018         {"misc-ctl3 ", 0x25, "\20\5HWSUSP"},
5019         {"mem0-up   ", 0x05},
5020         {"mem1-up   ", 0x06},
5021         {"mem2-up   ", 0x07},
5022         {"mem3-up   ", 0x08},
5023         {"mem4-up   ", 0x09},
5024         {NULL}
5025 };
5026 
5027 void
5028 xxdmp_cl_regs(pcicdev_t *pcic, int socket, uint32_t len)
5029 {
5030         int i, value, j;
5031         char buff[256];
5032         char *fmt;




 393  * or all fail.  i82365SL is assumed if failed.
 394  */
 395 static int pcic_ci_cirrus(pcicdev_t *);
 396 static int pcic_ci_vadem(pcicdev_t *);
 397 static int pcic_ci_ricoh(pcicdev_t *);
 398 
 399 int (*pcic_ci_funcs[])(pcicdev_t *) = {
 400         pcic_ci_cirrus,
 401         pcic_ci_vadem,
 402         pcic_ci_ricoh,
 403         NULL
 404 };
 405 
 406 static struct modldrv modldrv = {
 407         &mod_driverops,             /* Type of module. This one is a driver */
 408         "PCIC PCMCIA adapter driver",   /* Name of the module. */
 409         &pcic_devops,               /* driver ops */
 410 };
 411 
 412 static struct modlinkage modlinkage = {
 413         MODREV_1, { (void *)&modldrv, NULL }
 414 };
 415 
 416 int
 417 _init()
 418 {
 419         int stat;
 420 
 421         /* Allocate soft state */
 422         if ((stat = ddi_soft_state_init(&pcic_soft_state_p,
 423             SOFTC_SIZE, 2)) != DDI_SUCCESS)
 424                 return (stat);
 425 
 426         if ((stat = mod_install(&modlinkage)) != 0)
 427                 ddi_soft_state_fini(&pcic_soft_state_p);
 428 
 429         return (stat);
 430 }
 431 
 432 int
 433 _fini()


4992         {"mem4-ehi  ", 0x33, "\020\7WS0\10WS1"},
4993         {"card4-low ", 0x34},
4994         {"card4-hi  ", 0x35, "\020\7AM\10WP"},
4995         {"mpage0    ", 0x40},
4996         {"mpage1    ", 0x41},
4997         {"mpage2    ", 0x42},
4998         {"mpage3    ", 0x43},
4999         {"mpage4    ", 0x44},
5000         {NULL},
5001 };
5002 
5003 static struct intel_regs cregs[] = {
5004         {"misc-ctl1 ", 0x16, "\20\2VCC3\3PMI\4PSI\5SPKR\10INPACK"},
5005         {"fifo      ", 0x17, "\20\6DIOP\7DMEMP\10EMPTY"},
5006         {"misc-ctl2 ", 0x1e, "\20\1XCLK\2LOW\3SUSP\4CORE5V\5TCD\10RIOUT"},
5007         {"chip-info ", 0x1f, "\20\6DUAL"},
5008         {"IO-offlow0", 0x36},
5009         {"IO-offhi0 ", 0x37},
5010         {"IO-offlow1", 0x38},
5011         {"IO-offhi1 ", 0x39},
5012         {NULL}
5013 };
5014 
5015 static struct intel_regs cxregs[] = {
5016         {"ext-ctl-1 ", 0x03,
5017                 "\20\1VCCLCK\2AUTOCLR\3LED\4INVIRQC\5INVIRQM\6PUC"},
5018         {"misc-ctl3 ", 0x25, "\20\5HWSUSP"},
5019         {"mem0-up   ", 0x05},
5020         {"mem1-up   ", 0x06},
5021         {"mem2-up   ", 0x07},
5022         {"mem3-up   ", 0x08},
5023         {"mem4-up   ", 0x09},
5024         {NULL}
5025 };
5026 
5027 void
5028 xxdmp_cl_regs(pcicdev_t *pcic, int socket, uint32_t len)
5029 {
5030         int i, value, j;
5031         char buff[256];
5032         char *fmt;