blob: 6020591bd0c17f725362bd6507c87980c47b6052 [file] [log] [blame]
// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef __LIB_SMOGCHECK_H__
#define __LIB_SMOGCHECK_H__
#include <linux/types.h>
int GetDeviceFile(int adapter_nr);
int SetSlaveAddress(int fd, int addr);
int WriteByte(int fd, __u8 reg, __u8 byte_val);
int ReadByte(int fd, __u8 reg);
int WriteWord(int fd, __u8 reg, __u16 word_val);
int ReadWord(int fd, __u8 reg);
#endif // __LIB_SMOGCHECK_H__