Deleted Added
full compact
twe.c (123103) twe.c (126099)
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2003 Paul Saab
4 * Copyright (c) 2003 Vinod Kashyap
5 * Copyright (c) 2000 BSDi
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2003 Paul Saab
4 * Copyright (c) 2003 Vinod Kashyap
5 * Copyright (c) 2000 BSDi
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/dev/twe/twe.c 123103 2003-12-02 07:57:20Z ps $
29 * $FreeBSD: head/sys/dev/twe/twe.c 126099 2004-02-22 01:03:38Z cperciva $
30 */
31
32/*
33 * Driver for the 3ware Escalade family of IDE RAID controllers.
34 */
35
36#include <dev/twe/twe_compat.h>
37#include <dev/twe/twereg.h>

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

268 return (error);
269}
270
271static int
272twe_del_unit(struct twe_softc *sc, int unit)
273{
274 int error;
275
30 */
31
32/*
33 * Driver for the 3ware Escalade family of IDE RAID controllers.
34 */
35
36#include <dev/twe/twe_compat.h>
37#include <dev/twe/twereg.h>

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

268 return (error);
269}
270
271static int
272twe_del_unit(struct twe_softc *sc, int unit)
273{
274 int error;
275
276 if (unit < 0 || unit > TWE_MAX_UNITS)
276 if (unit < 0 || unit >= TWE_MAX_UNITS)
277 return (ENXIO);
278
279 if (sc->twe_drive[unit].td_disk == NULL)
280 return (ENXIO);
281
282 error = twe_detach_drive(sc, unit);
283 return (error);
284}

--- 1608 unchanged lines hidden ---
277 return (ENXIO);
278
279 if (sc->twe_drive[unit].td_disk == NULL)
280 return (ENXIO);
281
282 error = twe_detach_drive(sc, unit);
283 return (error);
284}

--- 1608 unchanged lines hidden ---