fdc.c (59249) | fdc.c (59783) |
---|---|
1/* 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Don Ahn. 7 * 8 * Libretto PCMCIA floppy support by David Horwitt (dhorwitt@ucsd.edu) --- 33 unchanged lines hidden (view full) --- 42 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 43 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 45 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 46 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 47 * SUCH DAMAGE. 48 * 49 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 | 1/* 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Don Ahn. 7 * 8 * Libretto PCMCIA floppy support by David Horwitt (dhorwitt@ucsd.edu) --- 33 unchanged lines hidden (view full) --- 42 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 43 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 45 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 46 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 47 * SUCH DAMAGE. 48 * 49 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 |
50 * $FreeBSD: head/sys/dev/fdc/fdc.c 59249 2000-04-15 05:54:02Z phk $ | 50 * $FreeBSD: head/sys/dev/fdc/fdc.c 59783 2000-04-30 10:01:56Z bde $ |
51 * 52 */ 53 54#include "opt_fdc.h" 55#include "card.h" 56 57#include <sys/param.h> 58#include <sys/systm.h> --- 596 unchanged lines hidden (view full) --- 655 656static struct isa_pnp_id fdc_ids[] = { 657 {0x0007d041, "PC standard floppy disk controller"}, /* PNP0700 */ 658 {0x0107d041, "Standard floppy controller supporting MS Device Bay Spec"}, /* PNP0701 */ 659 {0} 660}; 661 662static int | 51 * 52 */ 53 54#include "opt_fdc.h" 55#include "card.h" 56 57#include <sys/param.h> 58#include <sys/systm.h> --- 596 unchanged lines hidden (view full) --- 655 656static struct isa_pnp_id fdc_ids[] = { 657 {0x0007d041, "PC standard floppy disk controller"}, /* PNP0700 */ 658 {0x0107d041, "Standard floppy controller supporting MS Device Bay Spec"}, /* PNP0701 */ 659 {0} 660}; 661 662static int |
663fdc_read_ivar(device_t dev, device_t child, int which, u_long *result) | 663fdc_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) |
664{ 665 struct fdc_ivars *ivars = device_get_ivars(child); 666 667 switch (which) { 668 case FDC_IVAR_FDUNIT: 669 *result = ivars->fdunit; 670 break; 671 default: --- 1722 unchanged lines hidden --- | 664{ 665 struct fdc_ivars *ivars = device_get_ivars(child); 666 667 switch (which) { 668 case FDC_IVAR_FDUNIT: 669 *result = ivars->fdunit; 670 break; 671 default: --- 1722 unchanged lines hidden --- |