sys/dev/atm/hfa/fore_load.c
static void
fore_unattach(Fore_unit *fup)
{
	/*
	 * Reset the board and return it to cold_start state.
	 * Hopefully, this will prevent use of resources as
	 * we're trying to free things up.
	 */
	fore_reset(fup);

	/*
	 * Lock out all device interrupts
	 */
	DEVICE_LOCK((Cmn_unit *)fup);

	/*
	 * Remove any pending timeout()'s
	 */
	callout_stop(&fup->fu_init_timer);

	/*
	 * Unmap the device interrupt
	 */
	(void) pci_unmap_int(fup->fu_pcitag);

	/*
	 * Unmap memory
	 */
#ifdef notdef
	(void) pci_unmap_mem(fup->fu_pcitag, PCA200E_PCI_MEMBASE);
#endif

	DEVICE_UNLOCK((Cmn_unit *)fup);
}
/*
 * Device unattach routine
 * 
 * Reset the physical device, remove any pending timeouts, 
 * unmap any register sets, and unregister any interrupts.
 *
 * Arguments:
 *	fup		pointer to device unit structure
 *
 * Returns:
 *	none
 */
Device unattach routine

Reset the physical device, remove any pending timeouts,
unmap any register sets, and unregister any interrupts.

fup             pointer to device unit structure

none
Device unattach routine Reset the physical device remove any pending timeouts unmap any register sets and unregister any interrupts . fup pointer to device unit structure none
static void
fore_unattach(Fore_unit *fup)
{
	fore_reset(fup);
	DEVICE_LOCK((Cmn_unit *)fup);
	callout_stop(&fup->fu_init_timer);
	(void) pci_unmap_int(fup->fu_pcitag);
#ifdef notdef
	(void) pci_unmap_mem(fup->fu_pcitag, PCA200E_PCI_MEMBASE);
#endif
	DEVICE_UNLOCK((Cmn_unit *)fup);
}
static void fore_unattach ( Fore_unit * fup ) { fore_reset ( fup ) ; DEVICE_LOCK ( ( Cmn_unit * ) fup ) ; callout_stop ( & fup -> fu_init_timer ) ; ( void ) pci_unmap_int ( fup -> fu_pcitag ) ; #ifdef notdef ( void ) pci_unmap_mem ( fup -> fu_pcitag , PCA200E_PCI_MEMBASE ) ; #endif DEVICE_UNLOCK ( ( Cmn_unit * ) fup ) ; }
Device unattach routine
Device unattach routine
/*
	 * Reset the board and return it to cold_start state.
	 * Hopefully, this will prevent use of resources as
	 * we're trying to free things up.
	 */ /*
	 * Lock out all device interrupts
	 */ /*
	 * Remove any pending timeout()'s
	 */ /*
	 * Unmap the device interrupt
	 */ /*
	 * Unmap memory
	 */