Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

smc37c669.c File Reference

#include <linux/kernel.h>
#include <linux/malloc.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <asm/hwrpb.h>
#include <asm/io.h>
#include <asm/segment.h>

Include dependency graph for smc37c669.c:

Go to the source code of this file.

Defines

#define DBG_DEVS(args)
#define KB   1024
#define MB   (1024*KB)
#define GB   (1024*MB)
#define SMC_DEBUG   0
#define SMC37c669_DEVICE_IRQ_MASK   0x80000000
#define SMC37c669_DEVICE_IRQ(__i)   ((SMC37c669_DEVICE_IRQ_MASK) | (__i))
#define SMC37c669_IS_DEVICE_IRQ(__i)   (((__i) & (SMC37c669_DEVICE_IRQ_MASK)) == (SMC37c669_DEVICE_IRQ_MASK))
#define SMC37c669_RAW_DEVICE_IRQ(__i)   ((__i) & ~(SMC37c669_DEVICE_IRQ_MASK))
#define SMC37c669_DEVICE_DRQ_MASK   0x80000000
#define SMC37c669_DEVICE_DRQ(__d)   ((SMC37c669_DEVICE_DRQ_MASK) | (__d))
#define SMC37c669_IS_DEVICE_DRQ(__d)   (((__d) & (SMC37c669_DEVICE_DRQ_MASK)) == (SMC37c669_DEVICE_DRQ_MASK))
#define SMC37c669_RAW_DEVICE_DRQ(__d)   ((__d) & ~(SMC37c669_DEVICE_DRQ_MASK))
#define SMC37c669_DEVICE_ID   0x3
#define SERIAL_0   0
#define SERIAL_1   1
#define PARALLEL_0   2
#define FLOPPY_0   3
#define IDE_0   4
#define NUM_FUNCS   5
#define COM1_BASE   0x3F8
#define COM1_IRQ   4
#define COM2_BASE   0x2F8
#define COM2_IRQ   3
#define PARP_BASE   0x3BC
#define PARP_IRQ   7
#define PARP_DRQ   3
#define FDC_BASE   0x3F0
#define FDC_IRQ   6
#define FDC_DRQ   2
#define SMC37c669_CONFIG_ON_KEY   0x55
#define SMC37c669_CONFIG_OFF_KEY   0xAA
#define SMC37c669_DEVICE_IRQ_A   ( SMC37c669_DEVICE_IRQ( 0x01 ) )
#define SMC37c669_DEVICE_IRQ_B   ( SMC37c669_DEVICE_IRQ( 0x02 ) )
#define SMC37c669_DEVICE_IRQ_C   ( SMC37c669_DEVICE_IRQ( 0x03 ) )
#define SMC37c669_DEVICE_IRQ_D   ( SMC37c669_DEVICE_IRQ( 0x04 ) )
#define SMC37c669_DEVICE_IRQ_E   ( SMC37c669_DEVICE_IRQ( 0x05 ) )
#define SMC37c669_DEVICE_IRQ_F   ( SMC37c669_DEVICE_IRQ( 0x06 ) )
#define SMC37c669_DEVICE_IRQ_H   ( SMC37c669_DEVICE_IRQ( 0x08 ) )
#define SMC37c669_DEVICE_DRQ_A   ( SMC37c669_DEVICE_DRQ( 0x01 ) )
#define SMC37c669_DEVICE_DRQ_B   ( SMC37c669_DEVICE_DRQ( 0x02 ) )
#define SMC37c669_DEVICE_DRQ_C   ( SMC37c669_DEVICE_DRQ( 0x03 ) )
#define SMC37c669_CR00_INDEX   0x00
#define SMC37c669_CR01_INDEX   0x01
#define SMC37c669_CR02_INDEX   0x02
#define SMC37c669_CR03_INDEX   0x03
#define SMC37c669_CR04_INDEX   0x04
#define SMC37c669_CR05_INDEX   0x05
#define SMC37c669_CR06_INDEX   0x06
#define SMC37c669_CR07_INDEX   0x07
#define SMC37c669_CR08_INDEX   0x08
#define SMC37c669_CR09_INDEX   0x09
#define SMC37c669_CR0A_INDEX   0x0A
#define SMC37c669_CR0B_INDEX   0x0B
#define SMC37c669_CR0C_INDEX   0x0C
#define SMC37c669_CR0D_INDEX   0x0D
#define SMC37c669_CR0E_INDEX   0x0E
#define SMC37c669_CR0F_INDEX   0x0F
#define SMC37c669_CR10_INDEX   0x10
#define SMC37c669_CR11_INDEX   0x11
#define SMC37c669_CR12_INDEX   0x12
#define SMC37c669_CR13_INDEX   0x13
#define SMC37c669_CR14_INDEX   0x14
#define SMC37c669_CR15_INDEX   0x15
#define SMC37c669_CR16_INDEX   0x16
#define SMC37c669_CR17_INDEX   0x17
#define SMC37c669_CR18_INDEX   0x18
#define SMC37c669_CR19_INDEX   0x19
#define SMC37c669_CR1A_INDEX   0x1A
#define SMC37c669_CR1B_INDEX   0x1B
#define SMC37c669_CR1C_INDEX   0x1C
#define SMC37c669_CR1D_INDEX   0x1D
#define SMC37c669_CR1E_INDEX   0x1E
#define SMC37c669_CR1F_INDEX   0x1F
#define SMC37c669_CR20_INDEX   0x20
#define SMC37c669_CR21_INDEX   0x21
#define SMC37c669_CR22_INDEX   0x22
#define SMC37c669_CR23_INDEX   0x23
#define SMC37c669_CR24_INDEX   0x24
#define SMC37c669_CR25_INDEX   0x25
#define SMC37c669_CR26_INDEX   0x26
#define SMC37c669_CR27_INDEX   0x27
#define SMC37c669_CR28_INDEX   0x28
#define SMC37c669_CR29_INDEX   0x29
#define SMC37c669_DEVICE_ID_INDEX   SMC37c669_CR0D_INDEX
#define SMC37c669_DEVICE_REVISION_INDEX   SMC37c669_CR0E_INDEX
#define SMC37c669_FDC_BASE_ADDRESS_INDEX   SMC37c669_CR20_INDEX
#define SMC37c669_IDE_BASE_ADDRESS_INDEX   SMC37c669_CR21_INDEX
#define SMC37c669_IDE_ALTERNATE_ADDRESS_INDEX   SMC37c669_CR22_INDEX
#define SMC37c669_PARALLEL0_BASE_ADDRESS_INDEX   SMC37c669_CR23_INDEX
#define SMC37c669_SERIAL0_BASE_ADDRESS_INDEX   SMC37c669_CR24_INDEX
#define SMC37c669_SERIAL1_BASE_ADDRESS_INDEX   SMC37c669_CR25_INDEX
#define SMC37c669_PARALLEL_FDC_DRQ_INDEX   SMC37c669_CR26_INDEX
#define SMC37c669_PARALLEL_FDC_IRQ_INDEX   SMC37c669_CR27_INDEX
#define SMC37c669_SERIAL_IRQ_INDEX   SMC37c669_CR28_INDEX
#define TRUE   1
#define FALSE   0
#define wb(_x_, _y_)   outb( _y_, (unsigned int)((unsigned long)_x_) )
#define rb(_x_)   inb( (unsigned int)((unsigned long)_x_) )
#define spinlock(x)
#define spinunlock(x)

Typedefs

typedef _SMC37c669_CONFIG_REGS SMC37c669_CONFIG_REGS
typedef _SMC37c669_CR00 SMC37c669_CR00
typedef _SMC37c669_CR01 SMC37c669_CR01
typedef _SMC37c669_CR02 SMC37c669_CR02
typedef _SMC37c669_CR03 SMC37c669_CR03
typedef _SMC37c669_CR04 SMC37c669_CR04
typedef _SMC37c669_CR05 SMC37c669_CR05
typedef _SMC37c669_CR06 SMC37c669_CR06
typedef _SMC37c669_CR07 SMC37c669_CR07
typedef _SMC37c669_CR08 SMC37c669_CR08
typedef _SMC37c669_CR09 SMC37c669_CR09
typedef _SMC37c669_CR0A SMC37c669_CR0A
typedef _SMC37c669_CR0B SMC37c669_CR0B
typedef _SMC37c669_CR0C SMC37c669_CR0C
typedef _SMC37c669_CR0D SMC37c669_CR0D
typedef _SMC37c669_CR0E SMC37c669_CR0E
typedef _SMC37c669_CR0F SMC37c669_CR0F
typedef _SMC37c669_CR10 SMC37c669_CR10
typedef _SMC37c669_CR11 SMC37c669_CR11
typedef _SMC37c66_CR1E SMC37c669_CR1E
typedef _SMC37c669_CR1F SMC37c669_CR1F
typedef _SMC37c669_CR20 SMC37c669_CR20
typedef _SMC37c669_CR21 SMC37c669_CR21
typedef _SMC37c669_CR22 SMC37c669_CR22
typedef _SMC37c669_CR23 SMC37c669_CR23
typedef _SMC37c669_CR24 SMC37c669_CR24
typedef _SMC37c669_CR25 SMC37c669_CR25
typedef _SMC37c669_CR26 SMC37c669_CR26
typedef _SMC37c669_CR27 SMC37c669_CR27
typedef _SMC37c669_CR28 SMC37c669_CR28
typedef _SMC37c669_CR29 SMC37c669_CR29
typedef SMC37c669_CR0D SMC37c669_DEVICE_ID_REGISTER
typedef SMC37c669_CR0E SMC37c669_DEVICE_REVISION_REGISTER
typedef SMC37c669_CR20 SMC37c669_FDC_BASE_ADDRESS_REGISTER
typedef SMC37c669_CR21 SMC37c669_IDE_ADDRESS_REGISTER
typedef SMC37c669_CR23 SMC37c669_PARALLEL_BASE_ADDRESS_REGISTER
typedef SMC37c669_CR24 SMC37c669_SERIAL_BASE_ADDRESS_REGISTER
typedef SMC37c669_CR26 SMC37c669_PARALLEL_FDC_DRQ_REGISTER
typedef SMC37c669_CR27 SMC37c669_PARALLEL_FDC_IRQ_REGISTER
typedef SMC37c669_CR28 SMC37c669_SERIAL_IRQ_REGISTER
typedef _SMC37c669_IRQ_TRANSLATION_ENTRY SMC37c669_IRQ_TRANSLATION_ENTRY
typedef _SMC37c669_DRQ_TRANSLATION_ENTRY SMC37c669_DRQ_TRANSLATION_ENTRY

Functions

SMC37c669_CONFIG_REGSSMC37c669_detect (int)
unsigned int SMC37c669_enable_device (unsigned int func)
unsigned int SMC37c669_disable_device (unsigned int func)
unsigned int SMC37c669_configure_device (unsigned int func, int port, int irq, int drq)
void SMC37c669_display_device_info (void)
static unsigned int SMC37c669_is_device_enabled (unsigned int func)
static void SMC37c669_config_mode (unsigned int enable)
static unsigned char SMC37c669_read_config (unsigned char index)
static void SMC37c669_write_config (unsigned char index, unsigned char data)
static void SMC37c669_init_local_config (void)
static struct DEVICE_CONFIGSMC37c669_get_config (unsigned int func)
static int SMC37c669_xlate_irq (unsigned int irq)
static int SMC37c669_xlate_drq (unsigned int drq)
void __init SMC37c669_dump_registers (void)
void __init SMC669_Init (int index)

Variables

static struct DEVICE_CONFIG NUM_FUNCS
static unsigned long SMC37c669_Addresses[] __initdata


Define Documentation

#define COM1_BASE   0x3F8
 

Definition at line 108 of file smc37c669.c.

Referenced by SMC669_Init(), and SMC93x_Init().

#define COM1_IRQ   4
 

Definition at line 109 of file smc37c669.c.

Referenced by SMC669_Init().

#define COM2_BASE   0x2F8
 

Definition at line 110 of file smc37c669.c.

Referenced by SMC669_Init(), and SMC93x_Init().

#define COM2_IRQ   3
 

Definition at line 111 of file smc37c669.c.

Referenced by SMC669_Init().

#define DBG_DEVS args   ) 
 

Definition at line 18 of file smc37c669.c.

#define FALSE   0
 

Definition at line 953 of file smc37c669.c.

Referenced by __initfunc(), __irlmp_close_lsap(), __irttp_close_tsap(), _vprintk(), abort_exchange(), abort_SCB(), actisys_change_speed(), actisys_close(), actisys_reset(), add_to_address_cache(), agp_controller_release_current(), agp_remove_controller(), agp_unbind_memory(), agpioc_acquire_wrap(), aic7xxx_abort(), aic7xxx_bus_device_reset(), aic7xxx_device_queue_depth(), aic7xxx_done(), aic7xxx_find_syncrate(), aic7xxx_handle_command_completion_intr(), aic7xxx_handle_reqinit(), aic7xxx_handle_scsiint(), aic7xxx_handle_seqint(), aic7xxx_isr(), aic7xxx_panic_abort(), aic7xxx_parse_msg(), aic7xxx_reset(), aic7xxx_reset_device(), aic7xxx_run_waiting_queues(), aic7xxx_scb_on_qoutfifo(), aic7xxx_search_qinfifo(), aic7xxx_setup(), AnalyzeIncomingFrame(), ASC_INITFUNC(), AscIsrChipHalted(), AtapiBusMaster(), AtapiIdentify(), AtapiRequestSense(), AtapiReset(), AtapiWaitReady(), autoCmdCmplt(), block_until_chase_response(), board_inquiry(), br_init_port(), build_queues(), BuildSgList(), BusMaster(), busMstrTimeOut(), CALLBACK(), card_start(), cfm(), cfm_fsm(), check_blink_state(), check_scsidisk_media_change(), ChkIfChipInitialized(), clear_all_rep(), clear_reported(), compact_infoblock(), cpqfcTS_GetNVRAM_data(), cpqfcTS_ReadNVRAM(), cpqfcTS_WorkTask(), cpqfcTSDecodeGBICtype(), cpqfcTSGetLPSM(), cpqfcTSImplicitLogout(), cpqfcTSStartExchange(), CpqTsProcessIMQEntry(), create_missing_block(), dc21140_infoleaf(), dc21140m_autoconf(), dc21142_infoleaf(), dc21143_infoleaf(), dc2114x_autoconf(), de4x5_reset_phy(), designated_for_some_port(), dialog_checklist(), dialog_menu(), dialog_textbox(), disable_port(), diva_server_4bri_start(), diva_server_bri_start(), diva_server_bri_test_int(), diva_server_start(), Divas_vsprintf(), DivasCardNew(), DivasDpc(), DivasLogAdd(), DivasOut(), do_debugger_trap(), do_dma(), do_lo_request(), do_old_reset(), do_qcomm(), do_reset(), do_z2_request(), eata2x_biosparam(), eata2x_release(), eata_int_handler(), eata_pio_int_handler(), eata_pio_queue(), eata_pio_reset(), eata_pio_send_command(), eata_proc_info(), eata_queue(), eata_reset(), eata_send_command(), eata_set_info(), ecm_fsm(), ecm_init(), edge_break(), edge_bulk_out_cmd_callback(), edge_bulk_out_data_callback(), edge_close(), edge_open(), enlarge_buffer(), esi_change_speed(), esi_close(), esi_reset(), fabric_explore_timer(), fcFindLoggedInPort(), fddi_isr(), flush_buffer(), formac_offline(), forward_delay_timer_expired(), FreezeTach(), gdb_stub_handle_exception(), gdth_fill_cache_cmd(), gdth_get_info(), GDTH_INITFUNC(), gdth_ioctl_alloc(), gdth_ioctl_check_bin(), gdth_ioctl_free(), gdth_next(), gdth_readapp_event(), gdth_set_asc_info(), gdth_set_bin_info(), gdth_set_info(), gdth_sync_event(), gdth_wait(), get_board_data(), get_conf_PIO(), get_FW_version(), get_NVRAM(), get_pci_irq(), get_pio_conf_PIO(), get_prev(), GetRegs(), GetTrapEntry(), girbil_change_speed(), girbil_close(), girbil_reset(), handle_FM_interrupt(), handle_IMQ_BUF_WARN_interrupt(), handle_MFS_BUF_WARN_interrupt(), handle_MFS_interrupt(), handle_OCI_interrupt(), handle_SFS_BUF_WARN_interrupt(), HardReset(), hashbin_find(), hashbin_remove(), hello_timer_expired(), hold_timer_expired(), hp100_close(), hp100_hwinit(), hp100_start_xmit(), hp100_start_xmit_bm(), hwt_init(), hwt_stop(), ihdlr(), IncStat(), init_fddi_driver(), init_orchid(), init_vgachip(), InitFailover(), initial_tok_int(), internal_setup(), iph5526_abort(), iph5526_detect(), ips_detect(), ips_eh_reset(), ips_release(), ips_send_cmd(), ips_wait(), ips_write_driver_status(), ipsintr_blocking(), ircc_hard_xmit(), ircc_is_receiving(), ircc_open(), ircomm_tty_change_speed(), ircomm_tty_connect_indication(), ircomm_tty_send_initial_parameters(), irda_close(), irda_device_set_media_busy(), irda_device_txqueue_empty(), irda_init(), irda_lock(), irda_task_kick(), irda_unlock(), irlan_client_ctrl_data_indication(), irlan_client_ctrl_disconnect_indication(), irlan_eth_set_multicast_list(), irlan_run_ctrl_tx_queue(), irlap_apply_connection_parameters(), irlap_apply_default_connection_parameters(), irlap_discovery_confirm(), irlap_do_event(), irlap_initiate_connection_state(), irlap_media_busy_expired(), irlap_qos_negotiate(), irlap_send_data_primary(), irlap_send_data_primary_poll(), irlap_send_data_secondary(), irlap_send_data_secondary_final(), irlap_start_poll_timer(), irlap_state_ndm(), irlap_state_nrm_p(), irlap_state_nrm_s(), irlap_state_reply(), irlap_state_reset(), irlap_state_xmit_p(), irlmp_disconnect_indication(), irlmp_disconnect_request(), irlmp_do_discovery(), irlmp_dup(), irlmp_init(), irlmp_open_lsap(), irlmp_send_data_pdu(), irlmp_send_lcf_pdu(), irlmp_slsap_inuse(), irlmp_state_dtr(), irport_hard_xmit(), irport_open(), Irq_Handler(), irttp_connect_request(), irttp_connect_response(), irttp_disconnect_indication(), irttp_disconnect_request(), irttp_flow_request(), irttp_open_tsap(), irttp_run_rx_queue(), irttp_run_tx_queue(), irttp_todo_expired(), irtty_hard_xmit(), irtty_net_open(), irtty_open(), is_in_list(), ixj_daa_cid_read(), lcs_alloc_drvr_globals(), lcs_check_reset(), lcs_detect(), lcs_drvr_globals_valid(), lcs_getfreetxbuff(), lcs_getstats(), lcs_handle_irq(), lcs_initwriteccws(), lcs_open(), lcs_probe(), lcs_resume_writetask(), lcs_rxerror(), lcs_rxpacket(), lcs_set_slow_hw(), lcs_should_queue_write(), lcs_stopcard(), lcs_tx_is_busy(), lcs_wakeup_func(), lem_check_lct(), lem_evaluate(), litelink_change_speed(), litelink_close(), litelink_reset(), load_FW(), local_port_discovery(), loop_timer(), mac_drv_rx_mode(), mac_ring_up(), mark_scsi_sid(), message_age_timer_expired(), mgsl_dma_test(), mgsl_irq_test(), mgsl_isr_receive_status(), mgsl_memory_test(), mgsl_register_test(), mii_get_phy(), node_logged_in_prev(), nos_ols_timer(), nsc_ircc_dma_receive_complete(), nsc_ircc_dma_xmit_complete(), nsc_ircc_hard_xmit_fir(), nsc_ircc_hard_xmit_sir(), nsc_ircc_is_receiving(), nsc_ircc_open(), old_belkin_close(), orc_reset_scsi_bus(), os_scsi_tape_flush(), os_scsi_tape_open(), osst_attach(), osst_flush_buffer(), osst_get_logical_frame(), osst_int_ioctl(), osst_ioctl(), osst_write(), pc_rcode_actions(), pc_tcode_actions(), Pci2220i_Detect(), Pci2220i_QueueCommand(), Pci2220i_Release(), pcm_fsm(), pcm_init(), PeekIMQEntry(), perform_adisc(), phaseBusFree(), phaseMsgOut(), plc_irq(), port_detect(), port_discovery_timer(), port_state_selection(), process_rcvd_status(), ProcessELS_Reply(), ProcessELS_Request(), ProcessFCS_Reply(), queueDisconnect(), queueFindSccb(), queueSearchSelect(), read_pio(), receive_pcb(), ReconTimerExpiry(), register_HBA(), register_pio_HBA(), remove_from_list(), remove_from_queue(), reorder(), ResetRadio(), RevalidateSEST(), RIOReMapPorts(), RIOServiceHost(), rmt_fsm(), rmt_init(), rmt_new_dup_actions(), s390_start_IO(), saa5249_attach(), saa5249_ioctl(), saa5249_open(), sbni_recv(), scan_scsis_single(), scarb(), scasid(), SccbMgr_bad_isr(), SccbMgr_my_int(), SccbMgr_sense_adapter(), SccbMgr_start_sccb(), SccbMgrTableInitTarget(), scini(), scmachid(), scsell(), scsendi(), scsi_build_commandblocks(), scsi_decide_disposition(), scsi_mlqueue_finish(), scsi_register(), scsi_reset(), scsi_sense_valid(), scsi_tape_flush(), scsi_tape_open(), scsi_unjam_host(), scvalq(), sd_init_onedisk(), se2_rd_all(), selection_criteria(), send_more_port_data(), send_packet(), send_pcb(), send_pcb_fast(), send_pcb_slow(), SendLogins(), set_location(), set_mode_densblk(), set_NVRAM(), SetLoginFields(), sFlushRxFIFO(), sFlushTxFIFO(), sid_logged_in(), sInitChan(), sis900_auto_negotiate(), sis900_mii_probe(), sis900_timer(), sisyncn(), siwidn(), skfp_interrupt(), skfp_probe(), SLIC_SetState(), sm_pm_bypass_present(), SMC37c669_configure_device(), SMC37c669_detect(), SMC37c669_disable_device(), SMC37c669_enable_device(), SMC37c669_is_device_enabled(), SMC669_Init(), smp_signal_others(), smt_action(), smt_agent_init(), smt_event(), smt_init_evc(), smt_parse_arg(), smt_received_pack(), smt_reset_defaults(), smt_srf_event(), smt_timer_init(), smt_timer_stop(), sres(), srom_infoleaf_info(), ssel(), st_attach(), st_int_ioctl(), st_ioctl(), st_write(), start_pcm_timer0(), start_rmt_timer0(), start_rmt_timer1(), start_rmt_timer2(), state_inside_frame(), stop_forward_delay_timer(), stop_hello_timer(), stop_hold_timer(), stop_message_age_timer(), stop_tcn_timer(), stop_topology_change_timer(), strip_open_low(), sys_ptrace(), tachyon_interrupt_handler(), tcn_timer_expired(), tekram_change_speed(), tekram_close(), tekram_reset(), timer_done(), tl_i2c_rx_ack(), tl_i2c_tx_start(), tl_i2c_tx_stop(), TLan_MiiReadReg(), TLan_ResetAdapter(), topology_change_timer_expired(), toshoboe_hard_xmit(), transmit_config(), trident_check_channel_interrupt(), trident_enable_loop_interrupts(), trident_load_channel_registers(), trident_write_voice_regs(), tw_initialize_units(), tw_scsi_queue(), tw_scsiop_inquiry_complete(), tx_arp_packet(), tx_ip_packet(), tx_sequence(), type0_infoblock(), type2_infoblock(), type4_infoblock(), u14_34f_biosparam(), u14_34f_release(), ultrastor_14f_detect(), ultrastor_24f_detect(), ultrastor_interrupt(), ultrastor_queuecommand(), UnblockScsiDevice(), usc_loopmode_send_done(), usc_process_rxoverrun_sync(), UxCardHandleFree(), UxCardMemAttach(), w83977af_dma_receive_complete(), w83977af_hard_xmit(), w83977af_is_receiving(), w83977af_open(), wait_on_busy(), waitChipReady(), waitFWReady(), waitHDIset(), waitHDOoff(), WaitReady(), WaitReadyLong(), waitSCSIRSTdone(), whiteheat_send_cmd(), WriteData(), WriteDataBoth(), and WriteSignature().

#define FDC_BASE   0x3F0
 

Definition at line 115 of file smc37c669.c.

Referenced by SMC669_Init().

#define FDC_DRQ   2
 

Definition at line 117 of file smc37c669.c.

Referenced by SMC669_Init().

#define FDC_IRQ   6
 

Definition at line 116 of file smc37c669.c.

Referenced by SMC669_Init().

#define FLOPPY_0   3
 

Definition at line 101 of file smc37c669.c.

Referenced by SMC37c669_disable_device(), SMC37c669_display_device_info(), SMC37c669_enable_device(), SMC37c669_get_config(), SMC37c669_init_local_config(), SMC37c669_is_device_enabled(), and SMC669_Init().

#define GB   (1024*MB)
 

Definition at line 23 of file smc37c669.c.

#define IDE_0   4
 

Definition at line 102 of file smc37c669.c.

Referenced by SMC37c669_disable_device(), SMC37c669_display_device_info(), SMC37c669_enable_device(), SMC37c669_get_config(), SMC37c669_init_local_config(), SMC37c669_is_device_enabled(), and SMC669_Init().

#define KB   1024
 

Definition at line 21 of file smc37c669.c.

#define MB   (1024*KB)
 

Definition at line 22 of file smc37c669.c.

#define NUM_FUNCS   5
 

Definition at line 103 of file smc37c669.c.

#define PARALLEL_0   2
 

Definition at line 100 of file smc37c669.c.

Referenced by SMC37c669_disable_device(), SMC37c669_display_device_info(), SMC37c669_enable_device(), SMC37c669_get_config(), SMC37c669_init_local_config(), SMC37c669_is_device_enabled(), and SMC669_Init().

#define PARP_BASE   0x3BC
 

Definition at line 112 of file smc37c669.c.

Referenced by SMC669_Init(), and SMC93x_Init().

#define PARP_DRQ   3
 

Definition at line 114 of file smc37c669.c.

Referenced by SMC669_Init().

#define PARP_IRQ   7
 

Definition at line 113 of file smc37c669.c.

Referenced by SMC669_Init().

#define rb _x_   )     inb( (unsigned int)((unsigned long)_x_) )
 

Definition at line 957 of file smc37c669.c.

Referenced by isdn_tty_cmd_ATand(), and SMC37c669_read_config().

#define SERIAL_0   0
 

Definition at line 98 of file smc37c669.c.

Referenced by SMC37c669_disable_device(), SMC37c669_display_device_info(), SMC37c669_enable_device(), SMC37c669_get_config(), SMC37c669_init_local_config(), SMC37c669_is_device_enabled(), and SMC669_Init().

#define SERIAL_1   1
 

Definition at line 99 of file smc37c669.c.

Referenced by SMC37c669_disable_device(), SMC37c669_display_device_info(), SMC37c669_enable_device(), SMC37c669_get_config(), SMC37c669_init_local_config(), SMC37c669_is_device_enabled(), and SMC669_Init().

#define SMC37c669_CONFIG_OFF_KEY   0xAA
 

Definition at line 123 of file smc37c669.c.

Referenced by SMC37c669_config_mode().

#define SMC37c669_CONFIG_ON_KEY   0x55
 

Definition at line 122 of file smc37c669.c.

Referenced by SMC37c669_config_mode().

#define SMC37c669_CR00_INDEX   0x00
 

Definition at line 147 of file smc37c669.c.

#define SMC37c669_CR01_INDEX   0x01
 

Definition at line 148 of file smc37c669.c.

#define SMC37c669_CR02_INDEX   0x02
 

Definition at line 149 of file smc37c669.c.

#define SMC37c669_CR03_INDEX   0x03
 

Definition at line 150 of file smc37c669.c.

#define SMC37c669_CR04_INDEX   0x04
 

Definition at line 151 of file smc37c669.c.

#define SMC37c669_CR05_INDEX   0x05
 

Definition at line 152 of file smc37c669.c.

#define SMC37c669_CR06_INDEX   0x06
 

Definition at line 153 of file smc37c669.c.

#define SMC37c669_CR07_INDEX   0x07
 

Definition at line 154 of file smc37c669.c.

#define SMC37c669_CR08_INDEX   0x08
 

Definition at line 155 of file smc37c669.c.

#define SMC37c669_CR09_INDEX   0x09
 

Definition at line 156 of file smc37c669.c.

#define SMC37c669_CR0A_INDEX   0x0A
 

Definition at line 157 of file smc37c669.c.

#define SMC37c669_CR0B_INDEX   0x0B
 

Definition at line 158 of file smc37c669.c.

#define SMC37c669_CR0C_INDEX   0x0C
 

Definition at line 159 of file smc37c669.c.

#define SMC37c669_CR0D_INDEX   0x0D
 

Definition at line 160 of file smc37c669.c.

#define SMC37c669_CR0E_INDEX   0x0E
 

Definition at line 161 of file smc37c669.c.

#define SMC37c669_CR0F_INDEX   0x0F
 

Definition at line 162 of file smc37c669.c.

#define SMC37c669_CR10_INDEX   0x10
 

Definition at line 163 of file smc37c669.c.

#define SMC37c669_CR11_INDEX   0x11
 

Definition at line 164 of file smc37c669.c.

#define SMC37c669_CR12_INDEX   0x12
 

Definition at line 165 of file smc37c669.c.

#define SMC37c669_CR13_INDEX   0x13
 

Definition at line 166 of file smc37c669.c.

#define SMC37c669_CR14_INDEX   0x14
 

Definition at line 167 of file smc37c669.c.

#define SMC37c669_CR15_INDEX   0x15
 

Definition at line 168 of file smc37c669.c.

#define SMC37c669_CR16_INDEX   0x16
 

Definition at line 169 of file smc37c669.c.

#define SMC37c669_CR17_INDEX   0x17
 

Definition at line 170 of file smc37c669.c.

#define SMC37c669_CR18_INDEX   0x18
 

Definition at line 171 of file smc37c669.c.

#define SMC37c669_CR19_INDEX   0x19
 

Definition at line 172 of file smc37c669.c.

#define SMC37c669_CR1A_INDEX   0x1A
 

Definition at line 173 of file smc37c669.c.

#define SMC37c669_CR1B_INDEX   0x1B
 

Definition at line 174 of file smc37c669.c.

#define SMC37c669_CR1C_INDEX   0x1C
 

Definition at line 175 of file smc37c669.c.

#define SMC37c669_CR1D_INDEX   0x1D
 

Definition at line 176 of file smc37c669.c.

#define SMC37c669_CR1E_INDEX   0x1E
 

Definition at line 177 of file smc37c669.c.

#define SMC37c669_CR1F_INDEX   0x1F
 

Definition at line 178 of file smc37c669.c.

#define SMC37c669_CR20_INDEX   0x20
 

Definition at line 179 of file smc37c669.c.

#define SMC37c669_CR21_INDEX   0x21
 

Definition at line 180 of file smc37c669.c.

#define SMC37c669_CR22_INDEX   0x22
 

Definition at line 181 of file smc37c669.c.

#define SMC37c669_CR23_INDEX   0x23
 

Definition at line 182 of file smc37c669.c.

#define SMC37c669_CR24_INDEX   0x24
 

Definition at line 183 of file smc37c669.c.

#define SMC37c669_CR25_INDEX   0x25
 

Definition at line 184 of file smc37c669.c.

#define SMC37c669_CR26_INDEX   0x26
 

Definition at line 185 of file smc37c669.c.

#define SMC37c669_CR27_INDEX   0x27
 

Definition at line 186 of file smc37c669.c.

#define SMC37c669_CR28_INDEX   0x28
 

Definition at line 187 of file smc37c669.c.

#define SMC37c669_CR29_INDEX   0x29
 

Definition at line 188 of file smc37c669.c.

#define SMC37c669_DEVICE_DRQ __d   )     ((SMC37c669_DEVICE_DRQ_MASK) | (__d))
 

Definition at line 86 of file smc37c669.c.

Referenced by SMC37c669_init_local_config().

#define SMC37c669_DEVICE_DRQ_A   ( SMC37c669_DEVICE_DRQ( 0x01 ) )
 

Definition at line 140 of file smc37c669.c.

#define SMC37c669_DEVICE_DRQ_B   ( SMC37c669_DEVICE_DRQ( 0x