ppb_base.c (38061) | ppb_base.c (39134) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998 Nicolas Souchu 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1997, 1998 Nicolas Souchu 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $Id: ppb_base.c,v 1.3 1997/09/01 00:51:45 bde Exp $ | 26 * $Id: ppb_base.c,v 1.4 1998/08/03 19:14:31 msmith Exp $ |
27 * 28 */ 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/kernel.h> 32 33#include <dev/ppbus/ppbconf.h> 34 --- 132 unchanged lines hidden (view full) --- 167 if (ppb->ppb_owner != dev) 168 return (EACCES); 169 170 r = status->status = ppb_rstr(dev); 171 172 status->timeout = r & TIMEOUT; 173 status->error = !(r & nFAULT); 174 status->select = r & SELECT; | 27 * 28 */ 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/kernel.h> 32 33#include <dev/ppbus/ppbconf.h> 34 --- 132 unchanged lines hidden (view full) --- 167 if (ppb->ppb_owner != dev) 168 return (EACCES); 169 170 r = status->status = ppb_rstr(dev); 171 172 status->timeout = r & TIMEOUT; 173 status->error = !(r & nFAULT); 174 status->select = r & SELECT; |
175 status->paper_end = r & ERROR; | 175 status->paper_end = r & PERROR; |
176 status->ack = !(r & nACK); 177 status->busy = !(r & nBUSY); 178 179 return (0); 180} | 176 status->ack = !(r & nACK); 177 status->busy = !(r & nBUSY); 178 179 return (0); 180} |