Subversion Repositories HelenOS

Rev

Rev 4163 | Rev 4197 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4163 Rev 4166
Line 171... Line 171...
171
    device->device_id = device_id;
171
    device->device_id = device_id;
172
    device->nil_phone = -1;
172
    device->nil_phone = -1;
173
    device->specific = ( void * ) dp_device;
173
    device->specific = ( void * ) dp_device;
174
    device->state = NETIF_ACTIVE;
174
    device->state = NETIF_ACTIVE;
175
    dp_device->dep.de_irq = irq;
175
    dp_device->dep.de_irq = irq;
176
    dp_device->dep.de_base_port = io;
176
//  dp_device->dep.de_base_port = io;
177
    dp_device->dep.de_mode = DEM_DISABLED;
177
    dp_device->dep.de_mode = DEM_DISABLED;
178
    //TODO address?
178
    //TODO address?
179
    if( ERROR_OCCURRED( iospace_enable( task_get_id(), ( void * ) ( uint32_t ) dp_device->dep.de_base_port, DP8390_IO_SIZE ))
179
    if( ERROR_OCCURRED( pio_enable(( void * ) io, DP8390_IO_SIZE, ( void ** ) & dp_device->dep.de_base_port ))
180
    || ERROR_OCCURRED( do_probe( & dp_device->dep ))){
180
    || ERROR_OCCURRED( do_probe( & dp_device->dep ))){
181
        free( dp_device );
181
        free( dp_device );
182
        free( device );
182
        free( device );
183
        return ERROR_CODE;
183
        return ERROR_CODE;
184
    }
184
    }