| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
Add missing va_end() in fdc_cmd.
0 -> NULL in arguments of fdc_sense_int().
Reminded by: joerg
Notes:
svn path=/stable/5/; revision=142885
|
| |
|
|
|
|
|
| |
Add the missing fflag argument to geom-class ioctl methods.
Notes:
svn path=/stable/5/; revision=142792
|
| |
|
|
| |
Notes:
svn path=/stable/5/; revision=141016
|
| |
|
|
| |
Notes:
svn path=/stable/5/; revision=137521
|
| |
|
|
|
|
|
| |
and clean up some printfs for npx.
Notes:
svn path=/stable/5/; revision=137357
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
revision 1.16
date: 2004/10/05 07:18:11; author: imp; state: Exp; lines: +4 -4
Yet another case of resources:
+ * 9: 0x3f0-0x3f3,0x3f4-0x3f5,0x3f7
This requires only one change to support. Rather than keying on the
size of the resource being 2, instead key off the end & 7 being 3.
This covers the same cases that the size of 2 would catch, but also
covers the new above case.
In addition, I think it is clearer to use the end in preference to the
size and start for case #8 as well. Turns two tests into one, and
catches no other cases.
Make minor commentary changes to deal with new case #9.
# This change is specifically minimal to allow easy MFC. A more
# extensive change will go into current once I've had a chance to test
# it on a lot of hardware...
Approved by: re@ (kensmith)
Forgotten by: imp@
Notes:
svn path=/stable/5/; revision=137023
|
| |
|
|
|
|
|
|
|
|
|
| |
Fix off-by-one error in fd_native_types that results in a panic
on boot for machines with 2.88M floppies.
Reviewed by: phk
Approved by: re (scottl@)
Notes:
svn path=/stable/5/; revision=136361
|
| |
|
|
|
|
|
|
|
|
| |
drives via hints if the _FDE enumeration fails but earlier steps all
succeeded.
Approved by: re (scottl)
Notes:
svn path=/stable/5/; revision=135987
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
>>revision 1.15
>>date: 2004/09/20 06:12:19; author: imp; state: Exp; lines: +14 -4
>>das@ has a ACPI bios that lists 0x3f0-0x3f1, 0x3f2-0x3f3, 0x3f4-0x3f5
>>and 0x3f7. fdc_isa_alloc_resource() didn't work right in this case
>>(it accessed FDOUT correctly due to an overflow of the first resource.
>>It accesed FDSTS and FDDATA incorrectly via the second resource (which
>>wound up accessing FDOUT and the tape register at 0x3f3) and badly for
>>the CTL register (at location 0x3f4). This is a minimal fix that just
>>'eats' the first one if it covers two locations and has an offset of
>>0. This confusion lead the floppy driver to think there'd been a disk
>>change, which uncovered a deadlock in the floppy/geom code which lead
>>to a panic. These changes fix that by fixing the underlying resource
>>problem, but doesn't address the potential deadlock issue that might
>>still be there.
>>
>>This is a minimal fix so it can more safely be merged into 5 w/o risk
>>for known working configurations (hence the use of the ugly goto,
>>which reduces case 8 to case 6 w/o affecting cases 1-7). A more
>>invasive fix that will handle more ACPI resource list diversity is in
>>the pipeline that should kill these issues once and for all, while
>>staying within the resources that we allocate.
>>
>>Tested/Reported by: das
>>Reviewed by: njl
>>MFC before: re->next_release_name(5.3-BETA5);
If you get floppy hangs on boot, please try after this patch and let
me know if they are solved.
Approved by: re@ (scottl)
Notes:
svn path=/stable/5/; revision=135921
|
| |
|
|
|
|
|
|
|
| |
for creating /dev entries.
Approved by: re::scottl
Notes:
svn path=/stable/5/; revision=135794
|
| |
|
|
|
|
|
| |
Approved by: re@
Notes:
svn path=/stable/5/; revision=135415
|
| |
|
|
|
|
|
| |
Approved by: re (scottl)
Notes:
svn path=/stable/5/; revision=134712
|
| |
|
|
|
|
|
| |
Approved by: re (kensmith)
Notes:
svn path=/stable/5/; revision=134192
|
| |
|
|
| |
Notes:
svn path=/head/; revision=133727
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Some systems have _FDE and child floppy devices, but no _FDI. This seems
to be compatible with the standard. Don't error out if there is no _FDI.
Instead, continue on to the next device. The normal fd probe will take
care of this device.
* Some systems have _FDE but no child devices in AML. For these, add a
second pass that compares the results of _FDE to the presence of devices.
If not present, add the missing device.
* Some BIOS authors didn't read the spec. They use tape drive values for
all fdc(4) devices. Since this isn't grossly incompatible with the
required boolean value, use them. They also define the _FDE items as a
package instead of buffer. Regenerate the buffer from the package if it
is present.
Tested by: tjr, marcel
Notes:
svn path=/head/; revision=132810
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132285
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132284
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132271
|
| |
|
|
|
|
|
| |
probe.
Notes:
svn path=/head/; revision=132216
|
| |
|
|
|
|
|
|
|
|
|
|
| |
hints-based probe to fdc_hints_probe().
Also:
* Fix some resource leaks when attach fails.
* Remove the FDC_ATTACHED flag. It was supposed to prevent multiple
unloads but this is not necessary.
Notes:
svn path=/head/; revision=132215
|
| |
|
|
|
|
|
|
|
|
| |
methods. It also now handles ordinary floppy drive probing for drives
attached to ACPI.
Reviewed by: imp
Notes:
svn path=/head/; revision=132214
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132166
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132139
|
| |
|
|
|
|
|
| |
Move the resource allocation into the bus front ends.
Notes:
svn path=/head/; revision=132137
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132081
|
| |
|
|
|
|
|
| |
explicitly include it.
Notes:
svn path=/head/; revision=132080
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132050
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add an fdtype ivar. This will be the equivalent of fd->type.
* Move enabling the FIFO to the end of attach.
* Unify reset code into fdc_initial_reset().
* Add fdc_write_ivar().
* Update isa and pccard attachments accordingly.
* Set the flags unconditionally in probe since they may be overridden by
other probe routines. Both before and now, we're depending on probe
being called a final time on the winning driver so the flags we get are
the ones we intended.
* Use the bus accessor macros instead of defining our own.
* Remove duplicate assigns of fd->type.
Notes:
svn path=/head/; revision=132048
|
| |
|
|
|
|
|
| |
comment them out.
Notes:
svn path=/head/; revision=131983
|
| |
|
|
|
|
|
|
|
|
|
| |
step in making this driver more attachment neutral. Others plan on
adding acpi front ends.
Still need to cleanup the MI part of the driver because it isn't as
bus independent as it could be.
Notes:
svn path=/head/; revision=131767
|
| |
|
|
|
|
|
|
|
| |
device is open. This allows certain old and rather special dual
floppy controllers to work on both channels, as long as you only
have one open at a time.
Notes:
svn path=/head/; revision=131648
|
| |
|
|
|
|
|
| |
to working with a secondary floppy controller on a PC.
Notes:
svn path=/head/; revision=131599
|
| |
|
|
|
|
|
| |
Bump __FreeBSD_version accordingly.
Notes:
svn path=/head/; revision=130585
|
| |
|
|
| |
Notes:
svn path=/head/; revision=129787
|
| |
|
|
|
|
|
|
| |
from sys/isa/fd.c in preparation for specialization of attachments for
different busses.
Notes:
svn path=/head/; revision=129316
|
| |
|
|
|
|
|
|
|
| |
clause of an if-else statement was removed.
Reviewed by: no response from maintainer in 12 days
Notes:
svn path=/head/; revision=128632
|
| |
|
|
|
|
|
|
|
|
| |
license, per letter dated July 22, 1999 and email from Peter Wemm,
Alan Cox and Robert Watson.
Approved by: core, peter, alc, rwatson
Notes:
svn path=/head/; revision=128019
|
| |
|
|
|
|
|
|
| |
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
Notes:
svn path=/head/; revision=127135
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126400
|
| |
|
|
|
|
|
| |
Recognize when configured for "auto".
Notes:
svn path=/head/; revision=126232
|
| |
|
|
|
|
|
|
|
|
|
| |
Introduce d_version field in struct cdevsw, this must always be
initialized to D_VERSION.
Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing
four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
Notes:
svn path=/head/; revision=126080
|
| |
|
|
|
|
|
|
|
|
| |
Free approx 86 major numbers with a mostly automatically generated patch.
A number of strategic drivers have been left behind by caution, and a few
because they still (ab)use their major number.
Notes:
svn path=/head/; revision=126076
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
resources. (Note that the correct range is 0x3f7,0x3f0-0x3f5.) Such
devices will be detected as follows:
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port
0x3f7,0x3f4-0x3f5,0x3f2-0x3f3,0x3f0-0x3f1 irq 6 drq 2 on acpi0
To do this, we find the minimum and maximum start addresses for the
resources and use them as the base for the IO and control ports.
Help from: jhb
Notes:
svn path=/head/; revision=125851
|
| |
|
|
|
|
|
| |
floppy drives in the absence of hints.
Notes:
svn path=/head/; revision=121403
|
| |
|
|
| |
Notes:
svn path=/head/; revision=121215
|
| |
|
|
| |
Notes:
svn path=/head/; revision=120154
|
| |
|
|
|
|
|
| |
first letter of fdopen() to avoid nameclashing with other stuff.
Notes:
svn path=/head/; revision=120153
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This commit puts the relevant code snippets under #ifdef GONE_IN_5
(rather than #ifndef BURN_BRIDGES) thereby disabling the code now.
The code wil be entirely removed before 5.2 unless we find reasons
why this would be a bad idea.
Approach suggested by: imp
Notes:
svn path=/head/; revision=119994
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
For the floppy driver, use fdcontrol to manipulate density selection.
For the CD drivers, the 'a' and 'c' suffix is without actual effect and
any applications insisting on it can be satisfied with a symlink:
ln -s /dev/cd0 /dev/cd0a
Ongoing discussion may result in these pieces of code being removed before
the 5-stable branch as opposed to after.
Notes:
svn path=/head/; revision=119761
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
disabled.
- Change the apm driver to match the acpi driver's behavior by checking to
see if the device is disabled in the identify routine instead of in the
probe routine. This way if the device is disabled it is never created.
Note that a few places (ips(4), Alpha SMP) used "disable" instead of
"disabled" for their hint names, and these hints must be changed to
"disabled". If this is a big problem, resource_disabled() can always be
changed to honor both names.
Notes:
svn path=/head/; revision=117167
|