diff options
Diffstat (limited to 'drivers/parport/parport_sunbpp.c')
-rw-r--r-- | drivers/parport/parport_sunbpp.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/parport/parport_sunbpp.c b/drivers/parport/parport_sunbpp.c index 9390a534a2b2..983a2d2df659 100644 --- a/drivers/parport/parport_sunbpp.c +++ b/drivers/parport/parport_sunbpp.c | |||
@@ -82,27 +82,6 @@ static unsigned char parport_sunbpp_read_data(struct parport *p) | |||
82 | return sbus_readb(®s->p_dr); | 82 | return sbus_readb(®s->p_dr); |
83 | } | 83 | } |
84 | 84 | ||
85 | #if 0 | ||
86 | static void control_pc_to_sunbpp(struct parport *p, unsigned char status) | ||
87 | { | ||
88 | struct bpp_regs __iomem *regs = (struct bpp_regs __iomem *)p->base; | ||
89 | unsigned char value_tcr = sbus_readb(®s->p_tcr); | ||
90 | unsigned char value_or = sbus_readb(®s->p_or); | ||
91 | |||
92 | if (status & PARPORT_CONTROL_STROBE) | ||
93 | value_tcr |= P_TCR_DS; | ||
94 | if (status & PARPORT_CONTROL_AUTOFD) | ||
95 | value_or |= P_OR_AFXN; | ||
96 | if (status & PARPORT_CONTROL_INIT) | ||
97 | value_or |= P_OR_INIT; | ||
98 | if (status & PARPORT_CONTROL_SELECT) | ||
99 | value_or |= P_OR_SLCT_IN; | ||
100 | |||
101 | sbus_writeb(value_or, ®s->p_or); | ||
102 | sbus_writeb(value_tcr, ®s->p_tcr); | ||
103 | } | ||
104 | #endif | ||
105 | |||
106 | static unsigned char status_sunbpp_to_pc(struct parport *p) | 85 | static unsigned char status_sunbpp_to_pc(struct parport *p) |
107 | { | 86 | { |
108 | struct bpp_regs __iomem *regs = (struct bpp_regs __iomem *)p->base; | 87 | struct bpp_regs __iomem *regs = (struct bpp_regs __iomem *)p->base; |