1#ifndef __NVKM_I2C_PORT_H__
2#define __NVKM_I2C_PORT_H__
3#include "priv.h"
4
5#ifndef MSG
6#define MSG(l,f,a...) do {                                                     \
7	struct nvkm_i2c_port *_port = (void *)port;                         \
8	nv_##l(_port, "PORT:%02x: "f, _port->index, ##a);                      \
9} while(0)
10#define DBG(f,a...) MSG(debug, f, ##a)
11#define ERR(f,a...) MSG(error, f, ##a)
12#endif
13#endif
14