Timeda 8-multiport adapter: only 2 ports available
rik at inse.ru
Tue Dec 23 15:31:40 UTC 2008
Boris Samorodov writes:
> Marcel Moolenaar <xcllnt at mac.com> writes:
>> On Dec 13, 2008, at 5:36 AM, Boris Samorodov wrote:
>>> That's for the line [*]:
>>> --- pucdata.c (revision 185784)
>>> +++ pucdata.c (working copy)
>>> @@ -1145,6 +1145,10 @@
>>> case PUC_CFG_GET_TYPE:
>>> *res = PUC_TYPE_SERIAL;
>>> return (0);
>>> + case PUC_CFG_INIT_PORT:
>>> + bus_write_1((struct res *)res, 1 /* IER */, [*]
>>> + (port >= 2) ? 0x10 : 0);
>>> + return (0);
>> Argh, (struct res *) must be (struct resource *)...
> No go. The same, ports are detected but show garbadge.
This is just cause the 0x10 is only here. IMHO it should be in all
places where we write IER.
But in the uart code the value of IER is filtered with 0xf0. Next time
I'll come to you with
hardware loopbacks and I'll try to find the patch for speed
outodetection to check if baud
rate is the only problem. I hope 0x10 just change baud factor and it is
linear factor ;-)
> Thank you for your efforts.
More information about the freebsd-current