* Acess2 VIA Rhine II Driver (VT6102)
* - By John Hodge (thePowersGang)
*/
-#define DEBUG 1
+#define DEBUG 0
#define VERSION ((0<<8)|10)
#include <acess.h>
#include <modules.h>
{
int id = -1;
int i = 0;
- tCard *card;
giRhine2_CardCount = PCI_CountDevices(VENDOR_ID, DEVICE_ID);
if( giRhine2_CardCount == 0 ) return MODULE_ERR_NOTNEEDED;
while( (id = PCI_GetDevice(VENDOR_ID, DEVICE_ID, i)) != -1 )
{
- card = &gaRhine2_Cards[i];
+ tCard *card = &gaRhine2_Cards[i];
LOG("BAR0 = 0x%08x", PCI_GetBAR(id, 0));
LOG("BAR1 = 0x%08x", PCI_GetBAR(id, 1));
tIPStackBuffer *Rhine2_WaitPacket(void *Ptr)
{
tCard *card = Ptr;
- tIPStackBuffer *ret;
struct sRXDesc *desc;
int nDesc;
LOG("%i descriptors in packet", nDesc);
- ret = IPStack_Buffer_CreateBuffer(nDesc);
+ tIPStackBuffer *ret = IPStack_Buffer_CreateBuffer(nDesc);
desc = card->NextRX;
while( !(desc->Length & (1 << 15)) )
{