Deleted Added
full compact
immio.c (185003) immio.c (187576)
1/*-
2 * Copyright (c) 1998, 1999 Nicolas Souchu
3 * Copyright (c) 2001 Alcove - Nicolas Souchu
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 14 unchanged lines hidden (view full) ---

23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 *
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998, 1999 Nicolas Souchu
3 * Copyright (c) 2001 Alcove - Nicolas Souchu
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 14 unchanged lines hidden (view full) ---

23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 *
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/ppbus/immio.c 185003 2008-11-16 17:42:02Z jhb $");
31__FBSDID("$FreeBSD: head/sys/dev/ppbus/immio.c 187576 2009-01-21 23:10:06Z jhb $");
32
33/*
34 * Iomega ZIP+ Matchmaker Parallel Port Interface driver
35 *
36 * Thanks to David Campbell work on the Linux driver and the Iomega specs
37 * Thanks to Thiebault Moeglin for the drive
38 */
39#ifdef _KERNEL

--- 561 unchanged lines hidden (view full) ---

601 INB_NIBBLE_H, (void *)&(vpo)->vpo_nibble.h,
602 INB_NIBBLE_L, (void *)&(vpo)->vpo_nibble.l,
603 INB_NIBBLE_F, nibble_inbyte_hook,
604 INB_NIBBLE_P, (void *)&(vpo)->vpo_nibble);
605
606 /*
607 * Initialize mode dependent in/out microsequences
608 */
32
33/*
34 * Iomega ZIP+ Matchmaker Parallel Port Interface driver
35 *
36 * Thanks to David Campbell work on the Linux driver and the Iomega specs
37 * Thanks to Thiebault Moeglin for the drive
38 */
39#ifdef _KERNEL

--- 561 unchanged lines hidden (view full) ---

601 INB_NIBBLE_H, (void *)&(vpo)->vpo_nibble.h,
602 INB_NIBBLE_L, (void *)&(vpo)->vpo_nibble.l,
603 INB_NIBBLE_F, nibble_inbyte_hook,
604 INB_NIBBLE_P, (void *)&(vpo)->vpo_nibble);
605
606 /*
607 * Initialize mode dependent in/out microsequences
608 */
609 ppb_lock(ppbus);
609 if ((error = ppb_request_bus(ppbus, vpo->vpo_dev, PPB_WAIT)))
610 goto error;
611
612 /* ppbus automatically restore the last mode entered during detection */
613 switch (vpo->vpo_mode_found) {
614 case VP0_MODE_EPP:
615 ppb_MS_GET_init(ppbus, vpo->vpo_dev, epp17_instr);
616 ppb_MS_PUT_init(ppbus, vpo->vpo_dev, epp17_outstr);

--- 10 unchanged lines hidden (view full) ---

627 device_printf(vpo->vpo_dev, "NIBBLE mode\n");
628 break;
629 default:
630 panic("imm: unknown mode %d", vpo->vpo_mode_found);
631 }
632
633 ppb_release_bus(ppbus, vpo->vpo_dev);
634 error:
610 if ((error = ppb_request_bus(ppbus, vpo->vpo_dev, PPB_WAIT)))
611 goto error;
612
613 /* ppbus automatically restore the last mode entered during detection */
614 switch (vpo->vpo_mode_found) {
615 case VP0_MODE_EPP:
616 ppb_MS_GET_init(ppbus, vpo->vpo_dev, epp17_instr);
617 ppb_MS_PUT_init(ppbus, vpo->vpo_dev, epp17_outstr);

--- 10 unchanged lines hidden (view full) ---

628 device_printf(vpo->vpo_dev, "NIBBLE mode\n");
629 break;
630 default:
631 panic("imm: unknown mode %d", vpo->vpo_mode_found);
632 }
633
634 ppb_release_bus(ppbus, vpo->vpo_dev);
635 error:
636 ppb_unlock(ppbus);
635 return (error);
636}
637
638/*
639 * imm_reset_bus()
640 *
641 */
642int

--- 172 unchanged lines hidden ---
637 return (error);
638}
639
640/*
641 * imm_reset_bus()
642 *
643 */
644int

--- 172 unchanged lines hidden ---