amplc_dio200: Use register size in board stucture.
authorIan Abbott <abbotti@mev.co.uk>
Mon, 28 May 2012 09:40:41 +0000 (10:40 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 28 May 2012 09:40:41 +0000 (10:40 +0100)
commit95c9143b3a4bc51fcd4e8b42e9e9c232fbcbd333
tree082bdb87b423f2754fcef1c536e9279e1968d535
parent250183b6f3c370badb98e49ca59c73c4003b3eb5
amplc_dio200: Use register size in board stucture.

Store the length of the main register region in new member 'mainsize' of
'struct dio200_board_struct' and initialize it in each element of
'dio200_boards[]'.

Check PCI resource holding the main registers is long enough.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
comedi/drivers/amplc_dio200.c