amr.c (133870) | amr.c (135236) |
---|---|
1/*- 2 * Copyright (c) 1999,2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 41 unchanged lines hidden (view full) --- 50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 54 * SUCH DAMAGE. 55 */ 56 57#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1999,2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 41 unchanged lines hidden (view full) --- 50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 54 * SUCH DAMAGE. 55 */ 56 57#include <sys/cdefs.h> |
58__FBSDID("$FreeBSD: head/sys/dev/amr/amr.c 133870 2004-08-16 17:23:09Z ambrisko $"); | 58__FBSDID("$FreeBSD: head/sys/dev/amr/amr.c 135236 2004-09-14 16:36:12Z scottl $"); |
59 60/* 61 * Driver for the AMI MegaRaid family of controllers. 62 */ 63 64#include <sys/param.h> 65#include <sys/systm.h> 66#include <sys/malloc.h> --- 636 unchanged lines hidden (view full) --- 703 704 /* get ourselves a command buffer */ 705 if ((ac = amr_alloccmd(sc)) == NULL) 706 goto out; 707 /* allocate the response structure */ 708 if ((result = malloc(bufsize, M_DEVBUF, M_NOWAIT)) == NULL) 709 goto out; 710 /* set command flags */ | 59 60/* 61 * Driver for the AMI MegaRaid family of controllers. 62 */ 63 64#include <sys/param.h> 65#include <sys/systm.h> 66#include <sys/malloc.h> --- 636 unchanged lines hidden (view full) --- 703 704 /* get ourselves a command buffer */ 705 if ((ac = amr_alloccmd(sc)) == NULL) 706 goto out; 707 /* allocate the response structure */ 708 if ((result = malloc(bufsize, M_DEVBUF, M_NOWAIT)) == NULL) 709 goto out; 710 /* set command flags */ |
711 ac->ac_flags |= AMR_CMD_PRIORITY | AMR_CMD_DATAOUT; | 711 ac->ac_flags |= AMR_CMD_PRIORITY | AMR_CMD_DATAIN; |
712 713 /* point the command at our data */ 714 ac->ac_data = result; 715 ac->ac_length = bufsize; 716 717 /* build the command proper */ 718 mbox = (u_int8_t *)&ac->ac_mailbox; /* XXX want a real structure for this? */ 719 mbox[0] = cmd; --- 1165 unchanged lines hidden --- | 712 713 /* point the command at our data */ 714 ac->ac_data = result; 715 ac->ac_length = bufsize; 716 717 /* build the command proper */ 718 mbox = (u_int8_t *)&ac->ac_mailbox; /* XXX want a real structure for this? */ 719 mbox[0] = cmd; --- 1165 unchanged lines hidden --- |