Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *  ssp.h
0004  *
0005  *  Copyright (C) 2003 Russell King, All Rights Reserved.
0006  */
0007 #ifndef SSP_H
0008 #define SSP_H
0009 
0010 struct ssp_state {
0011     unsigned int    cr0;
0012     unsigned int    cr1;
0013 };
0014 
0015 int ssp_write_word(u16 data);
0016 int ssp_read_word(u16 *data);
0017 int ssp_flush(void);
0018 void ssp_enable(void);
0019 void ssp_disable(void);
0020 void ssp_save_state(struct ssp_state *ssp);
0021 void ssp_restore_state(struct ssp_state *ssp);
0022 int ssp_init(void);
0023 void ssp_exit(void);
0024 
0025 #endif