20 #include <sys/types.h>
23 #include "dev/pci/sis1100_var.h"
24 #include "sis3100_vme_calls.h"
185 status = vme_A32D32_read(device, sis3820_base+
SIS3820_MODID, modid);
294 status = vme_A32BLT32_read(device, sis3820_base+
SIS3820_COUNTER_CH1, data, nwords, &gotwords) ;
295 if ( nwords != gotwords )
297 printf(
"sis3820_scaler_read-E- Severe error, words requested %d != gotwords %d \n", nwords, gotwords);
303 status = vme_A32MBLT64_read(device, sis3820_base+
SIS3820_SDRAM_BASE, data, nwords,&gotwords);
304 if ( nwords != gotwords )
306 printf(
"sis3820_scaler_read-E- Severe error, words requested %d != gotwords %d \n", nwords, gotwords);
312 status = vme_A32_2EVME_read(device, sis3820_base+
SIS3820_SDRAM_BASE, data, nwords, &gotwords) ;
313 if ( nwords != gotwords )
315 printf(
"sis3820_scaler_read-E- Severe error, words requested %d != gotwords %d \n", nwords, gotwords);
int sis3820_key_disable(int device, u_int32_t sis3820_base)
#define SIS3820_SDRAM_BASE
int sis3820_key_enable(int device, u_int32_t sis3820_base)
INT mode
scaler mode, see scaler_mode()
#define SIS3820_OPERATION_MODE
#define SIS3820_CONTROL_STATUS
#define SIS3820_COPY_DISABLE
int sis3820_operation_mode_read(int device, u_int32_t sis3820_base, u_int32_t *mode)
#define SIS3820_KEY_OPERATION_DISABLE
int sis3820_operation_mode_write(int device, u_int32_t sis3820_base, u_int32_t mode)
int sis3820_control_read(int device, u_int32_t sis3820_base, u_int32_t *control_status)
int sis3820_copy_disable_channel(int device, u_int32_t sis3820_base, u_int32_t channel_disable)
int sis3820_key_reset(int device, u_int32_t sis3820_base)
#define SIS3820_KEY_RESET
int sis3820_scaler_read(int device, u_int32_t sis3820_base, int mode, int nwords, u_int32_t *data)
int sis3820_modid_read(int device, u_int32_t sis3820_base, u_int32_t *modid)
#define SIS3820_COUNTER_CH1
int sis3820_control_write(int device, u_int32_t sis3820_base, u_int32_t control_status)
#define SIS3820_KEY_OPERATION_ENABLE