mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Here is a minor patch for FreeBSD 2.0R to allow it to recognize
2.88MB floppy drives. All it does is set the type to 1.44MB if it finds the 2.88MB drive. Submitted by: Andrew Gillham <gillham@andrews.edu>
This commit is contained in:
parent
d71771e8e3
commit
290dd077ef
5 changed files with 19 additions and 5 deletions
|
|
@ -40,7 +40,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.44 1994/11/29 15:46:20 jkh Exp $
|
||||
* $Id: fd.c,v 1.45 1994/11/30 12:04:28 jkh Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -498,6 +498,10 @@ fdattach(dev)
|
|||
printf("1.44MB 3.5in]");
|
||||
fd->type = FD_1440;
|
||||
break;
|
||||
case RTCFDT_288M:
|
||||
printf("2.88MB 3.5in - 1.44MB mode]");
|
||||
fd->type = FD_1440;
|
||||
break;
|
||||
case RTCFDT_360K:
|
||||
printf("360KB 5.25in]");
|
||||
fd->type = FD_360;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.44 1994/11/29 15:46:20 jkh Exp $
|
||||
* $Id: fd.c,v 1.45 1994/11/30 12:04:28 jkh Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -498,6 +498,10 @@ fdattach(dev)
|
|||
printf("1.44MB 3.5in]");
|
||||
fd->type = FD_1440;
|
||||
break;
|
||||
case RTCFDT_288M:
|
||||
printf("2.88MB 3.5in - 1.44MB mode]");
|
||||
fd->type = FD_1440;
|
||||
break;
|
||||
case RTCFDT_360K:
|
||||
printf("360KB 5.25in]");
|
||||
fd->type = FD_360;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)rtc.h 7.1 (Berkeley) 5/12/91
|
||||
* $Id: rtc.h,v 1.5 1994/08/15 03:15:20 wollman Exp $
|
||||
* $Id: rtc.h,v 1.6 1994/09/20 00:31:07 ache Exp $
|
||||
*/
|
||||
|
||||
#ifndef _I386_ISA_RTC_H_
|
||||
|
|
@ -104,6 +104,7 @@
|
|||
#define RTCFDT_12M 0x20 /* 1.2M */
|
||||
#define RTCFDT_720K 0x30 /* 720K */
|
||||
#define RTCFDT_144M 0x40 /* 1.44M */
|
||||
#define RTCFDT_288M 0x60 /* 2.88M */
|
||||
|
||||
#define RTC_BASELO 0x15 /* low byte of basemem size */
|
||||
#define RTC_BASEHI 0x16 /* high byte of basemem size */
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.44 1994/11/29 15:46:20 jkh Exp $
|
||||
* $Id: fd.c,v 1.45 1994/11/30 12:04:28 jkh Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -498,6 +498,10 @@ fdattach(dev)
|
|||
printf("1.44MB 3.5in]");
|
||||
fd->type = FD_1440;
|
||||
break;
|
||||
case RTCFDT_288M:
|
||||
printf("2.88MB 3.5in - 1.44MB mode]");
|
||||
fd->type = FD_1440;
|
||||
break;
|
||||
case RTCFDT_360K:
|
||||
printf("360KB 5.25in]");
|
||||
fd->type = FD_360;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)rtc.h 7.1 (Berkeley) 5/12/91
|
||||
* $Id: rtc.h,v 1.5 1994/08/15 03:15:20 wollman Exp $
|
||||
* $Id: rtc.h,v 1.6 1994/09/20 00:31:07 ache Exp $
|
||||
*/
|
||||
|
||||
#ifndef _I386_ISA_RTC_H_
|
||||
|
|
@ -104,6 +104,7 @@
|
|||
#define RTCFDT_12M 0x20 /* 1.2M */
|
||||
#define RTCFDT_720K 0x30 /* 720K */
|
||||
#define RTCFDT_144M 0x40 /* 1.44M */
|
||||
#define RTCFDT_288M 0x60 /* 2.88M */
|
||||
|
||||
#define RTC_BASELO 0x15 /* low byte of basemem size */
|
||||
#define RTC_BASEHI 0x16 /* high byte of basemem size */
|
||||
|
|
|
|||
Loading…
Reference in a new issue