1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
4  * All rights reserved.
5  *
6  * Purpose: Macros to access device
7  *
8  * Author: Tevin Chen
9  *
10  * Date: Mar 17, 1997
11  *
12  */
13 
14 #ifndef __UPC_H__
15 #define __UPC_H__
16 
17 #include "device.h"
18 
19 /*---------------------  Export Definitions -------------------------*/
20 
21 /* For memory mapped IO */
22 
23 #define VNSvOutPortW(dwIOAddress, wData) \
24 	iowrite16((u16)(wData), dwIOAddress)
25 
26 #define VNSvOutPortD(dwIOAddress, dwData) \
27 	iowrite32((u32)(dwData), dwIOAddress)
28 
29 /*---------------------  Export Classes  ----------------------------*/
30 
31 /*---------------------  Export Variables  --------------------------*/
32 
33 /*---------------------  Export Functions  --------------------------*/
34 
35 #endif /* __UPC_H__ */
36