00001 /* 00002 * kernel_drivers/adi_core/adi_devices.c 00003 * 00004 * Copyright (c) 2003-2004 Lukasz Dembinski <dembol@nasa.com.pl> 00005 * All Rights Reserved 00006 * 00007 * Date: 2004/01 00008 * Author: Lukasz Dembinski 00009 * Info: adi_devices.c core file 00010 * Contact: mailto: <dembol@nasa.com.pl> 00011 * 00012 */ 00013 00014 #include <agnix/agnix.h> 00015 #include <agnix/adi/adi.h> 00016 00017 void adi_device_lock_irq(struct adi_device_lock_s *dev_lock) 00018 { 00019 spin_lock_irqsave(&dev_lock->spin_lock, dev_lock->save_flags); 00020 } 00021 00022 void adi_device_unlock_irq(struct adi_device_lock_s *dev_lock) 00023 { 00024 spin_unlock_irqrestore(&dev_lock->spin_lock, dev_lock->save_flags); 00025 }