libc_extra/android_linux/net/if_/ifmap.rs
1// This file is part of libc-extra. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/libc-extra/master/COPYRIGHT. No part of libc-extra, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
2// Copyright © 2016-2018 The developers of libc-extra. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/libc-extra/master/COPYRIGHT.
3
4
5#[repr(C)]
6#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
7pub struct ifmap
8{
9 pub mem_start: c_ulong,
10 pub mem_end: c_ulong,
11 pub base_addr: c_ushort,
12 pub irq: c_uchar,
13 pub dma: c_uchar,
14 pub port: c_uchar,
15}
16
17impl Default for ifmap
18{
19 fn default() -> Self
20 {
21 unsafe { zeroed() }
22 }
23}