Deleted Added
full compact
scd.c (146734) scd.c (167086)
1/*-
2 * Copyright (c) 1995 Mikael Hybsch
3 * All rights reserved.
4 *
5 * Portions of this file are copied from mcd.c
6 * which has the following copyrights:
7 *
8 * Copyright 1993 by Holger Veit (data part)

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

36 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
39 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 *
41 */
42
43#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1995 Mikael Hybsch
3 * All rights reserved.
4 *
5 * Portions of this file are copied from mcd.c
6 * which has the following copyrights:
7 *
8 * Copyright 1993 by Holger Veit (data part)

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

36 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
39 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 *
41 */
42
43#include <sys/cdefs.h>
44__FBSDID("$FreeBSD: head/sys/dev/scd/scd.c 146734 2005-05-29 04:42:30Z nyan $");
44__FBSDID("$FreeBSD: head/sys/dev/scd/scd.c 167086 2007-02-27 17:23:29Z jhb $");
45
46
47#undef SCD_DEBUG
48
49#include <sys/param.h>
50#include <sys/systm.h>
51#include <sys/kernel.h>
52#include <sys/conf.h>

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

1288 process_attention(sc);
1289 continue;
1290 }
1291 if ((c & bits_set) == bits_set &&
1292 (c & bits_clear) == 0)
1293 {
1294 break;
1295 }
45
46
47#undef SCD_DEBUG
48
49#include <sys/param.h>
50#include <sys/systm.h>
51#include <sys/kernel.h>
52#include <sys/conf.h>

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

1288 process_attention(sc);
1289 continue;
1290 }
1291 if ((c & bits_set) == bits_set &&
1292 (c & bits_clear) == 0)
1293 {
1294 break;
1295 }
1296 tsleep(waitfor_status_bits, PZERO - 1, "waitfor", hz/10);
1296 pause("waitfor", hz/10);
1297 }
1298 }
1299 if ((c & bits_set) == bits_set &&
1300 (c & bits_clear) == 0)
1301 {
1302 return (0);
1303 }
1304#ifdef SCD_DEBUG

--- 106 unchanged lines hidden ---
1297 }
1298 }
1299 if ((c & bits_set) == bits_set &&
1300 (c & bits_clear) == 0)
1301 {
1302 return (0);
1303 }
1304#ifdef SCD_DEBUG

--- 106 unchanged lines hidden ---