Basic Mac port

Need to implement device managing function