mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Return the port size from the probe.
"ppc0 at port 0x378 irq 7 drq 3 on isa0" becomes "ppc0 at port 0x378-0x37f irq 7 drq 3 on isa0"
This commit is contained in:
parent
3bbf78853f
commit
9d0e5f96b0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45935
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ppc.c,v 1.19 1999/02/14 17:09:59 nsouch Exp $
|
||||
* $Id: ppc.c,v 1.20 1999/02/14 22:02:47 nsouch Exp $
|
||||
*
|
||||
*/
|
||||
#include "ppc.h"
|
||||
@ -43,6 +43,7 @@
|
||||
#include <vm/pmap.h>
|
||||
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <i386/isa/isa.h>
|
||||
|
||||
#include <dev/ppbus/ppbconf.h>
|
||||
#include <dev/ppbus/ppb_msq.h>
|
||||
@ -1745,7 +1746,7 @@ ppcprobe(struct isa_device *dvp)
|
||||
if (ppc_detect(ppc, dvp->id_flags & 0xf))
|
||||
goto error;
|
||||
|
||||
return (1);
|
||||
return (IO_LPTSIZE);
|
||||
|
||||
error:
|
||||
return (0);
|
||||
|
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ppc.c,v 1.19 1999/02/14 17:09:59 nsouch Exp $
|
||||
* $Id: ppc.c,v 1.20 1999/02/14 22:02:47 nsouch Exp $
|
||||
*
|
||||
*/
|
||||
#include "ppc.h"
|
||||
@ -43,6 +43,7 @@
|
||||
#include <vm/pmap.h>
|
||||
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <i386/isa/isa.h>
|
||||
|
||||
#include <dev/ppbus/ppbconf.h>
|
||||
#include <dev/ppbus/ppb_msq.h>
|
||||
@ -1745,7 +1746,7 @@ ppcprobe(struct isa_device *dvp)
|
||||
if (ppc_detect(ppc, dvp->id_flags & 0xf))
|
||||
goto error;
|
||||
|
||||
return (1);
|
||||
return (IO_LPTSIZE);
|
||||
|
||||
error:
|
||||
return (0);
|
||||
|
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ppc.c,v 1.19 1999/02/14 17:09:59 nsouch Exp $
|
||||
* $Id: ppc.c,v 1.20 1999/02/14 22:02:47 nsouch Exp $
|
||||
*
|
||||
*/
|
||||
#include "ppc.h"
|
||||
@ -43,6 +43,7 @@
|
||||
#include <vm/pmap.h>
|
||||
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <i386/isa/isa.h>
|
||||
|
||||
#include <dev/ppbus/ppbconf.h>
|
||||
#include <dev/ppbus/ppb_msq.h>
|
||||
@ -1745,7 +1746,7 @@ ppcprobe(struct isa_device *dvp)
|
||||
if (ppc_detect(ppc, dvp->id_flags & 0xf))
|
||||
goto error;
|
||||
|
||||
return (1);
|
||||
return (IO_LPTSIZE);
|
||||
|
||||
error:
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user