cvs commit: src/sys/dev/fdc fdc_isa.c

Warner Losh imp at FreeBSD.org
Thu Mar 10 10:09:26 PST 2005


imp         2005-03-10 18:09:25 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/fdc          fdc_isa.c 
  Log:
  Fix a couple of problems with the probe code when used with pnpbios
  resources.  When allocating 6 ports for a 4 port range isa code
  returns an error.  I'm not sure yet why this is the case, but suspect
  it is just a non-regularity in how the resource allocation code works
  which should be corrected.  Use 1 as the ports size in this case.
  However, in the hints case, we have to specify the length, so use 6 in
  that case.  I believe that this is also acpi friendly.
  
  Also, complain when we can't allocate FDOUT register space.  Right now we
  silently fail when we can't.  This failure is referred to above.
  
  When there's no resource for FDCTL, go ahead and allocate one by hand.
  Many PNPBIOS tables don't list this resource, and our hints mechanism also
  doesn't cover that range.  If we can't allocate it, whine, but fake up
  something.  Before, we were always bogusly faking it and no one noticed
  the sham (save the original author who has now fixed his private shame).
  
  Revision  Changes    Path
  1.20      +23 -9     src/sys/dev/fdc/fdc_isa.c


More information about the cvs-src mailing list