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: vpo.c,v 1.14 1999/05/06 21:14:49 ken Exp $
27 *
28 */
29
30#ifdef KERNEL
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/malloc.h>
34#include <sys/buf.h>
--- 317 unchanged lines hidden (view full) ---
352
353 xpt_done(ccb);
354
355 break;
356 }
357 case XPT_CALC_GEOMETRY:
358 {
359 struct ccb_calc_geometry *ccg;
360 u_int32_t secs_per_cylinder;
361
362 ccg = &ccb->ccg;
363
364#ifdef VP0_DEBUG
365 printf("vpo%d: XPT_CALC_GEOMETRY (%d, %d) request\n",
366 vpo->vpo_unit, ccg->volume_size, ccg->block_size);
367#endif
368
369 ccg->heads = 64;
370 ccg->secs_per_track = 32;
--- 74 unchanged lines hidden ---
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: vpo.c,v 1.14 1999/05/06 21:14:49 ken Exp $
27 *
28 */
29
30#ifdef KERNEL
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/malloc.h>
34#include <sys/buf.h>
--- 317 unchanged lines hidden (view full) ---
352
353 xpt_done(ccb);
354
355 break;
356 }
357 case XPT_CALC_GEOMETRY:
358 {
359 struct ccb_calc_geometry *ccg;
360 u_int32_t secs_per_cylinder;
361
362 ccg = &ccb->ccg;
363
364#ifdef VP0_DEBUG
365 printf("vpo%d: XPT_CALC_GEOMETRY (%d, %d) request\n",
366 vpo->vpo_unit, ccg->volume_size, ccg->block_size);
367#endif
368
369 ccg->heads = 64;
370 ccg->secs_per_track = 32;
--- 74 unchanged lines hidden ---