287 static int SSGetPage(get_page_t *);
288 static int SSGetSocket(get_socket_t *);
289 static int SSGetStatus(get_ss_status_t *);
290 static int SSGetWindow(get_window_t *);
291 static int SSInquireAdapter(inquire_adapter_t *);
292 static int SSInquireSocket(inquire_socket_t *);
293 static int SSInquireWindow(inquire_window_t *);
294 static int SSResetSocket(int, int);
295 static int SSSetPage(set_page_t *);
296 static int SSSetSocket(set_socket_t *);
297 static int SSSetWindow(set_window_t *);
298 static int SSSetIRQHandler(set_irq_handler_t *);
299 static int SSClearIRQHandler(clear_irq_handler_t *);
300
301 static struct modldrv modlmisc = {
302 &mod_miscops, /* Type of module. This one is a driver */
303 "PCMCIA Nexus Support", /* Name of the module. */
304 };
305
306 static struct modlinkage modlinkage = {
307 MODREV_1, (void *)&modlmisc, NULL
308 };
309
310 int
311 _init()
312 {
313 int ret;
314
315 cisp_init();
316
317 if (cs_init() != CS_SUCCESS) {
318 if (cs_deinit() != CS_SUCCESS)
319 cmn_err(CE_CONT, "pcmcia: _init cs_deinit error\n");
320 return (-1);
321 }
322
323 mutex_init(&pcmcia_global_lock, NULL, MUTEX_DEFAULT, NULL);
324 cv_init(&pcmcia_condvar, NULL, CV_DRIVER, NULL);
325 mutex_init(&pcmcia_enum_lock, NULL, MUTEX_DEFAULT, NULL);
326
327 if ((ret = mod_install(&modlinkage)) != 0) {
|
287 static int SSGetPage(get_page_t *);
288 static int SSGetSocket(get_socket_t *);
289 static int SSGetStatus(get_ss_status_t *);
290 static int SSGetWindow(get_window_t *);
291 static int SSInquireAdapter(inquire_adapter_t *);
292 static int SSInquireSocket(inquire_socket_t *);
293 static int SSInquireWindow(inquire_window_t *);
294 static int SSResetSocket(int, int);
295 static int SSSetPage(set_page_t *);
296 static int SSSetSocket(set_socket_t *);
297 static int SSSetWindow(set_window_t *);
298 static int SSSetIRQHandler(set_irq_handler_t *);
299 static int SSClearIRQHandler(clear_irq_handler_t *);
300
301 static struct modldrv modlmisc = {
302 &mod_miscops, /* Type of module. This one is a driver */
303 "PCMCIA Nexus Support", /* Name of the module. */
304 };
305
306 static struct modlinkage modlinkage = {
307 MODREV_1, { (void *)&modlmisc, NULL }
308 };
309
310 int
311 _init()
312 {
313 int ret;
314
315 cisp_init();
316
317 if (cs_init() != CS_SUCCESS) {
318 if (cs_deinit() != CS_SUCCESS)
319 cmn_err(CE_CONT, "pcmcia: _init cs_deinit error\n");
320 return (-1);
321 }
322
323 mutex_init(&pcmcia_global_lock, NULL, MUTEX_DEFAULT, NULL);
324 cv_init(&pcmcia_condvar, NULL, CV_DRIVER, NULL);
325 mutex_init(&pcmcia_enum_lock, NULL, MUTEX_DEFAULT, NULL);
326
327 if ((ret = mod_install(&modlinkage)) != 0) {
|