blob: 72d176790308454a61b7978c753ca8bd629bb756 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 * ssp.h
4 *
5 * Copyright (C) 2003 Russell King, All Rights Reserved.
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 */
7#ifndef SSP_H
8#define SSP_H
9
10struct ssp_state {
11 unsigned int cr0;
12 unsigned int cr1;
13};
14
15int ssp_write_word(u16 data);
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +010016int ssp_read_word(u16 *data);
17int ssp_flush(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070018void ssp_enable(void);
19void ssp_disable(void);
20void ssp_save_state(struct ssp_state *ssp);
21void ssp_restore_state(struct ssp_state *ssp);
22int ssp_init(void);
23void ssp_exit(void);
24
25#endif