1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 
  25 include $(SRC)/uts/Makefile.uts
  26 
  27 FILEMODE=644
  28 
  29 #
  30 #       Note that the following headers are present in the kernel but
  31 #       neither installed or shipped as part of the product:
  32 #               cpuid_drv.h:            Private interface for cpuid consumers
  33 #               unix_bb_info.h:         Private interface to kcov
  34 #
  35 
  36 i386_HDRS=                      \
  37         agp/agpamd64gart_io.h   \
  38         agp/agpdefs.h           \
  39         agp/agpgart_impl.h      \
  40         agp/agpmaster_io.h      \
  41         agp/agptarget_io.h      \
  42         agpgart.h               \
  43         asy.h                   \
  44         fd_debug.h              \
  45         fdc.h                   \
  46         fdmedia.h               \
  47         mouse.h                 \
  48         ucode.h
  49 
  50 sparc_HDRS=                     \
  51         mouse.h                 \
  52         scsi/targets/ssddef.h   \
  53         $(MDESCHDRS)
  54 
  55 # Generated headers
  56 GENHDRS=                        \
  57         priv_const.h            \
  58         priv_names.h            \
  59         usb/usbdevs.h
  60 
  61 CHKHDRS=                        \
  62         acpi_drv.h              \
  63         acct.h                  \
  64         acctctl.h               \
  65         acl.h                   \
  66         acl_impl.h              \
  67         aggr.h                  \
  68         aggr_impl.h             \
  69         aio.h                   \
  70         aio_impl.h              \
  71         aio_req.h               \
  72         aiocb.h                 \
  73         ascii.h                 \
  74         asynch.h                \
  75         atomic.h                \
  76         attr.h                  \
  77         audio.h                 \
  78         audioio.h               \
  79         autoconf.h              \
  80         auxv.h                  \
  81         auxv_386.h              \
  82         auxv_SPARC.h            \
  83         avl.h                   \
  84         avl_impl.h              \
  85         bitmap.h                \
  86         bitset.h                \
  87         bl.h                    \
  88         blkdev.h                \
  89         bofi.h                  \
  90         bofi_impl.h             \
  91         bpp_io.h                \
  92         bootstat.h              \
  93         brand.h                 \
  94         buf.h                   \
  95         bufmod.h                \
  96         bustypes.h              \
  97         byteorder.h             \
  98         callb.h                 \
  99         callo.h                 \
 100         cap_util.h              \
 101         cpucaps.h               \
 102         cpucaps_impl.h          \
 103         ccompile.h              \
 104         cdio.h                  \
 105         cladm.h                 \
 106         class.h                 \
 107         clconf.h                \
 108         clock_impl.h            \
 109         cmlb.h                  \
 110         cmn_err.h               \
 111         compress.h              \
 112         condvar.h               \
 113         condvar_impl.h          \
 114         conf.h                  \
 115         consdev.h               \
 116         console.h               \
 117         consplat.h              \
 118         vt.h                    \
 119         vtdaemon.h              \
 120         kd.h                    \
 121         contract.h              \
 122         contract_impl.h         \
 123         copyops.h               \
 124         core.h                  \
 125         corectl.h               \
 126         cpc_impl.h              \
 127         cpc_pcbe.h              \
 128         cpr.h                   \
 129         cpupart.h               \
 130         cpuvar.h                \
 131         crc32.h                 \
 132         cred.h                  \
 133         cred_impl.h             \
 134         crtctl.h                \
 135         cryptmod.h              \
 136         csiioctl.h              \
 137         ctf.h                   \
 138         ctfs.h                  \
 139         ctfs_impl.h             \
 140         ctf_api.h               \
 141         ctype.h                 \
 142         cyclic.h                \
 143         cyclic_impl.h           \
 144         dacf.h                  \
 145         dacf_impl.h             \
 146         damap.h                 \
 147         damap_impl.h            \
 148         dc_ki.h                 \
 149         ddi.h                   \
 150         ddifm.h                 \
 151         ddifm_impl.h            \
 152         ddi_hp.h                \
 153         ddi_hp_impl.h           \
 154         ddi_intr.h              \
 155         ddi_intr_impl.h         \
 156         ddi_impldefs.h          \
 157         ddi_implfuncs.h         \
 158         ddi_obsolete.h          \
 159         ddi_timer.h             \
 160         ddidevmap.h             \
 161         ddidmareq.h             \
 162         ddimapreq.h             \
 163         ddipropdefs.h           \
 164         dditypes.h              \
 165         debug.h                 \
 166         des.h                   \
 167         devctl.h                \
 168         devcache.h              \
 169         devcache_impl.h         \
 170         devfm.h                 \
 171         devid_cache.h           \
 172         devinfo_impl.h          \
 173         devops.h                \
 174         devpolicy.h             \
 175         devpoll.h               \
 176         dirent.h                \
 177         disp.h                  \
 178         dkbad.h                 \
 179         dkio.h                  \
 180         dklabel.h               \
 181         dl.h                    \
 182         dlpi.h                  \
 183         dld.h                   \
 184         dld_impl.h              \
 185         dld_ioc.h               \
 186         dls.h                   \
 187         dls_mgmt.h              \
 188         dls_impl.h              \
 189         dma_i8237A.h            \
 190         dnlc.h                  \
 191         door.h                  \
 192         door_data.h             \
 193         door_impl.h             \
 194         dtrace.h                \
 195         dtrace_impl.h           \
 196         dumpadm.h               \
 197         dumphdr.h               \
 198         ecppsys.h               \
 199         ecppio.h                \
 200         ecppreg.h               \
 201         ecppvar.h               \
 202         efi_partition.h         \
 203         elf.h                   \
 204         elf_386.h               \
 205         elf_SPARC.h             \
 206         elf_notes.h             \
 207         elf_amd64.h             \
 208         elftypes.h              \
 209         emul64.h                \
 210         emul64cmd.h             \
 211         emul64var.h             \
 212         epm.h                   \
 213         errno.h                 \
 214         errorq.h                \
 215         errorq_impl.h           \
 216         esunddi.h               \
 217         ethernet.h              \
 218         euc.h                   \
 219         eucioctl.h              \
 220         exacct.h                \
 221         exacct_catalog.h        \
 222         exacct_impl.h           \
 223         exec.h                  \
 224         exechdr.h               \
 225         extdirent.h             \
 226         fault.h                 \
 227         fasttrap.h              \
 228         fasttrap_impl.h         \
 229         fbio.h                  \
 230         fbuf.h                  \
 231         fcntl.h                 \
 232         fct.h                   \
 233         fct_defines.h           \
 234         fctio.h                 \
 235         fdbuffer.h              \
 236         fdio.h                  \
 237         feature_tests.h         \
 238         fem.h                   \
 239         file.h                  \
 240         filio.h                 \
 241         flock.h                 \
 242         flock_impl.h            \
 243         fork.h                  \
 244         fsd.h                   \
 245         fsd_impl.h              \
 246         fss.h                   \
 247         fsspriocntl.h           \
 248         fsid.h                  \
 249         fssnap.h                \
 250         fssnap_if.h             \
 251         fstyp.h                 \
 252         ftrace.h                \
 253         fx.h                    \
 254         fxpriocntl.h            \
 255         gfs.h                   \
 256         gld.h                   \
 257         gldpriv.h               \
 258         group.h                 \
 259         hdio.h                  \
 260         hook.h                  \
 261         hook_event.h            \
 262         hook_impl.h             \
 263         hwconf.h                \
 264         ia.h                    \
 265         iapriocntl.h            \
 266         ibpart.h                \
 267         id32.h                  \
 268         idmap.h                 \
 269         ieeefp.h                \
 270         id_space.h              \
 271         instance.h              \
 272         int_const.h             \
 273         int_fmtio.h             \
 274         int_limits.h            \
 275         int_types.h             \
 276         inttypes.h              \
 277         ioccom.h                \
 278         ioctl.h                 \
 279         ipc.h                   \
 280         ipc_impl.h              \
 281         ipc_rctl.h              \
 282         ipmi.h                  \
 283         isa_defs.h              \
 284         iscsi_authclient.h      \
 285         iscsi_authclientglue.h  \
 286         iscsi_protocol.h        \
 287         jioctl.h                \
 288         kbd.h                   \
 289         kbdreg.h                \
 290         kbio.h                  \
 291         kcpc.h                  \
 292         kdi.h                   \
 293         kdi_impl.h              \
 294         kiconv.h                \
 295         kiconv_big5_utf8.h      \
 296         kiconv_cck_common.h     \
 297         kiconv_cp950hkscs_utf8.h        \
 298         kiconv_emea1.h          \
 299         kiconv_emea2.h          \
 300         kiconv_euckr_utf8.h     \
 301         kiconv_euctw_utf8.h     \
 302         kiconv_gb18030_utf8.h   \
 303         kiconv_gb2312_utf8.h    \
 304         kiconv_hkscs_utf8.h     \
 305         kiconv_ja.h             \
 306         kiconv_ja_jis_to_unicode.h      \
 307         kiconv_ja_unicode_to_jis.h      \
 308         kiconv_ko.h             \
 309         kiconv_latin1.h         \
 310         kiconv_sc.h             \
 311         kiconv_tc.h             \
 312         kiconv_uhc_utf8.h       \
 313         kiconv_utf8_big5.h      \
 314         kiconv_utf8_cp950hkscs.h        \
 315         kiconv_utf8_euckr.h     \
 316         kiconv_utf8_euctw.h     \
 317         kiconv_utf8_gb18030.h   \
 318         kiconv_utf8_gb2312.h    \
 319         kiconv_utf8_hkscs.h     \
 320         kiconv_utf8_uhc.h       \
 321         kidmap.h                \
 322         klpd.h                  \
 323         klwp.h                  \
 324         kmdb.h                  \
 325         kmem.h                  \
 326         kmem_impl.h             \
 327         kobj.h                  \
 328         kobj_impl.h             \
 329         ksocket.h               \
 330         kstat.h                 \
 331         kstr.h                  \
 332         ksyms.h                 \
 333         ksynch.h                \
 334         ldterm.h                \
 335         lgrp.h                  \
 336         lgrp_user.h             \
 337         libc_kernel.h           \
 338         link.h                  \
 339         list.h                  \
 340         list_impl.h             \
 341         llc1.h                  \
 342         loadavg.h               \
 343         lock.h                  \
 344         lockfs.h                \
 345         lockstat.h              \
 346         lofi.h                  \
 347         log.h                   \
 348         logindmux.h             \
 349         logindmux_impl.h        \
 350         lwp.h                   \
 351         lwp_timer_impl.h        \
 352         lwp_upimutex_impl.h     \
 353         lpif.h                  \
 354         mac.h                   \
 355         mac_client.h            \
 356         mac_client_impl.h       \
 357         mac_ether.h             \
 358         mac_flow.h              \
 359         mac_flow_impl.h         \
 360         mac_impl.h              \
 361         mac_provider.h          \
 362         mac_soft_ring.h         \
 363         mac_stat.h              \
 364         machelf.h               \
 365         map.h                   \
 366         md4.h                   \
 367         md5.h                   \
 368         md5_consts.h            \
 369         mdi_impldefs.h          \
 370         mem.h                   \
 371         mem_config.h            \
 372         memlist.h               \
 373         mkdev.h                 \
 374         mhd.h                   \
 375         mii.h                   \
 376         miiregs.h               \
 377         mixer.h                 \
 378         mman.h                  \
 379         mmapobj.h               \
 380         mntent.h                \
 381         mntio.h                 \
 382         mnttab.h                \
 383         modctl.h                \
 384         mode.h                  \
 385         model.h                 \
 386         modhash.h               \
 387         modhash_impl.h          \
 388         mount.h                 \
 389         mouse.h                 \
 390         msacct.h                \
 391         msg.h                   \
 392         msg_impl.h              \
 393         msio.h                  \
 394         msreg.h                 \
 395         mtio.h                  \
 396         multidata.h             \
 397         multidata_impl.h        \
 398         mutex.h                 \
 399         nbmlock.h               \
 400         ndifm.h                 \
 401         ndi_impldefs.h          \
 402         net80211.h              \
 403         net80211_crypto.h       \
 404         net80211_ht.h           \
 405         net80211_proto.h        \
 406         netconfig.h             \
 407         neti.h                  \
 408         netstack.h              \
 409         nexusdefs.h             \
 410         note.h                  \
 411         nvpair.h                \
 412         nvpair_impl.h           \
 413         objfs.h                 \
 414         objfs_impl.h            \
 415         ontrap.h                \
 416         open.h                  \
 417         openpromio.h            \
 418         panic.h                 \
 419         param.h                 \
 420         pathconf.h              \
 421         pathname.h              \
 422         pattr.h                 \
 423         queue.h                 \
 424         serializer.h            \
 425         pbio.h                  \
 426         pccard.h                \
 427         pci.h                   \
 428         pcie.h                  \
 429         pci_impl.h              \
 430         pci_tools.h             \
 431         pcmcia.h                \
 432         pctypes.h               \
 433         pfmod.h                 \
 434         pg.h                    \
 435         pghw.h                  \
 436         physmem.h               \
 437         pkp_hash.h              \
 438         pm.h                    \
 439         policy.h                \
 440         poll.h                  \
 441         poll_impl.h             \
 442         pool.h                  \
 443         pool_impl.h             \
 444         pool_pset.h             \
 445         port.h                  \
 446         port_impl.h             \
 447         port_kernel.h           \
 448         portif.h                \
 449         ppmio.h                 \
 450         pppt_ic_if.h            \
 451         pppt_ioctl.h            \
 452         priocntl.h              \
 453         priv.h                  \
 454         priv_impl.h             \
 455         prnio.h                 \
 456         proc.h                  \
 457         processor.h             \
 458         procfs.h                \
 459         procset.h               \
 460         project.h               \
 461         protosw.h               \
 462         prsystm.h               \
 463         pset.h                  \
 464         pshot.h                 \
 465         ptem.h                  \
 466         ptms.h                  \
 467         ptyvar.h                \
 468         raidioctl.h             \
 469         ramdisk.h               \
 470         random.h                \
 471         rctl.h                  \
 472         rctl_impl.h             \
 473         rds.h                   \
 474         reboot.h                \
 475         refstr.h                \
 476         refstr_impl.h           \
 477         resource.h              \
 478         rlioctl.h               \
 479         rt.h                    \
 480         rtpriocntl.h            \
 481         rwlock.h                \
 482         rwlock_impl.h           \
 483         rwstlock.h              \
 484         sad.h                   \
 485         schedctl.h              \
 486         sdt.h                   \
 487         select.h                \
 488         sem.h                   \
 489         sem_impl.h              \
 490         sema_impl.h             \
 491         semaphore.h             \
 492         sendfile.h              \
 493         ser_sync.h              \
 494         session.h               \
 495         sha1.h                  \
 496         sha1_consts.h           \
 497         sha2.h                  \
 498         sha2_consts.h           \
 499         share.h                 \
 500         shm.h                   \
 501         shm_impl.h              \
 502         sid.h                   \
 503         siginfo.h               \
 504         signal.h                \
 505         sleepq.h                \
 506         smbios.h                \
 507         smbios_impl.h           \
 508         sobject.h               \
 509         socket.h                \
 510         socket_impl.h           \
 511         socket_proto.h          \
 512         socketvar.h             \
 513         sockfilter.h            \
 514         sockio.h                \
 515         soundcard.h             \
 516         squeue.h                \
 517         squeue_impl.h           \
 518         srn.h                   \
 519         sservice.h              \
 520         stat.h                  \
 521         statfs.h                \
 522         statvfs.h               \
 523         stdbool.h               \
 524         stdint.h                \
 525         stermio.h               \
 526         stmf.h                  \
 527         stmf_defines.h          \
 528         stmf_ioctl.h            \
 529         stmf_sbd_ioctl.h        \
 530         stream.h                \
 531         strft.h                 \
 532         strlog.h                \
 533         strmdep.h               \
 534         stropts.h               \
 535         strredir.h              \
 536         strstat.h               \
 537         strsubr.h               \
 538         strsun.h                \
 539         strtty.h                \
 540         sunddi.h                \
 541         sunldi.h                \
 542         sunldi_impl.h           \
 543         sunmdi.h                \
 544         sunndi.h                \
 545         sunos_dhcp_class.h      \
 546         sunpm.h                 \
 547         suntpi.h                \
 548         suntty.h                \
 549         swap.h                  \
 550         synch.h                 \
 551         sysdc.h                 \
 552         sysdc_impl.h            \
 553         syscall.h               \
 554         sysconf.h               \
 555         sysconfig.h             \
 556         sysevent.h              \
 557         sysevent_impl.h         \
 558         sysinfo.h               \
 559         syslog.h                \
 560         sysmacros.h             \
 561         sysmsg_impl.h           \
 562         systeminfo.h            \
 563         systm.h                 \
 564         task.h                  \
 565         taskq.h                 \
 566         taskq_impl.h            \
 567         t_kuser.h               \
 568         t_lock.h                \
 569         telioctl.h              \
 570         termio.h                \
 571         termios.h               \
 572         termiox.h               \
 573         thread.h                \
 574         ticlts.h                \
 575         ticots.h                \
 576         ticotsord.h             \
 577         tihdr.h                 \
 578         time.h                  \
 579         time_impl.h             \
 580         time_std_impl.h         \
 581         timeb.h                 \
 582         timer.h                 \
 583         times.h                 \
 584         timex.h                 \
 585         timod.h                 \
 586         tirdwr.h                \
 587         tiuser.h                \
 588         tl.h                    \
 589         tnf.h                   \
 590         tnf_com.h               \
 591         tnf_probe.h             \
 592         tnf_writer.h            \
 593         todio.h                 \
 594         tpicommon.h             \
 595         ts.h                    \
 596         tspriocntl.h            \
 597         ttcompat.h              \
 598         ttold.h                 \
 599         tty.h                   \
 600         ttychars.h              \
 601         ttydev.h                \
 602         tuneable.h              \
 603         turnstile.h             \
 604         types.h                 \
 605         types32.h               \
 606         tzfile.h                \
 607         u8_textprep.h           \
 608         u8_textprep_data.h      \
 609         uadmin.h                \
 610         ucred.h                 \
 611         uio.h                   \
 612         ulimit.h                \
 613         un.h                    \
 614         unistd.h                \
 615         user.h                  \
 616         ustat.h                 \
 617         utime.h                 \
 618         utsname.h               \
 619         utssys.h                \
 620         uuid.h                  \
 621         va_impl.h               \
 622         va_list.h               \
 623         var.h                   \
 624         varargs.h               \
 625         vfs.h                   \
 626         vfs_opreg.h             \
 627         vfstab.h                \
 628         vgareg.h                \
 629         videodev2.h             \
 630         visual_io.h             \
 631         vlan.h                  \
 632         vm.h                    \
 633         vm_usage.h              \
 634         vmem.h                  \
 635         vmem_impl.h             \
 636         vmsystm.h               \
 637         vnic.h                  \
 638         vnic_impl.h             \
 639         vnode.h                 \
 640         vscan.h                 \
 641         vtoc.h                  \
 642         vtrace.h                \
 643         vuid_event.h            \
 644         vuid_wheel.h            \
 645         vuid_queue.h            \
 646         vuid_state.h            \
 647         vuid_store.h            \
 648         wait.h                  \
 649         waitq.h                 \
 650         wanboot_impl.h          \
 651         watchpoint.h            \
 652         winlockio.h             \
 653         zcons.h                 \
 654         zone.h                  \
 655         xti_inet.h              \
 656         xti_osi.h               \
 657         xti_xtiopt.h            \
 658         zmod.h
 659 
 660 HDRS=                           \
 661         $(GENHDRS)              \
 662         $(CHKHDRS)
 663 
 664 AUDIOHDRS=                      \
 665         ac97.h                  \
 666         audio_common.h          \
 667         audio_driver.h          \
 668         audio_oss.h             \
 669         g711.h
 670 
 671 AVHDRS=                         \
 672         iec61883.h
 673 
 674 BSCHDRS=                        \
 675         bscbus.h                \
 676         bscv_impl.h             \
 677         lom_ebuscodes.h         \
 678         lom_io.h                \
 679         lom_priv.h              \
 680         lombus.h
 681 
 682 MDESCHDRS=                      \
 683         mdesc.h                 \
 684         mdesc_impl.h            
 685 
 686 CPUDRVHDRS=                     \
 687         cpudrv.h
 688 
 689 CRYPTOHDRS=                     \
 690         elfsign.h               \
 691         ioctl.h                 \
 692         ioctladmin.h            \
 693         common.h                \
 694         impl.h                  \
 695         spi.h                   \
 696         api.h                   \
 697         ops_impl.h              \
 698         sched_impl.h
 699 
 700 DCAMHDRS=                       \
 701         dcam1394_io.h
 702 
 703 IBHDRS=                 \
 704         ib_types.h      \
 705         ib_pkt_hdrs.h
 706 
 707 IBTLHDRS=               \
 708         ibtl_types.h    \
 709         ibtl_status.h   \
 710         ibti.h          \
 711         ibti_cm.h       \
 712         ibci.h          \
 713         ibti_common.h   \
 714         ibvti.h         \
 715         ibtl_ci_types.h
 716 
 717 IBTLIMPLHDRS=           \
 718         ibtl_util.h
 719 
 720 IBNEXHDRS=              \
 721         ibnex_devctl.h
 722 
 723 IBMFHDRS=               \
 724         ibmf.h          \
 725         ibmf_msg.h      \
 726         ibmf_saa.h      \
 727         ibmf_utils.h
 728 
 729 IBMGTHDRS=              \
 730         ib_dm_attr.h    \
 731         ib_mad.h        \
 732         sm_attr.h       \
 733         sa_recs.h
 734 
 735 IBDHDRS=                \
 736         ibd.h
 737 
 738 OFHDRS=                 \
 739         ofa_solaris.h   \
 740         ofed_kernel.h
 741 
 742 RDMAHDRS=               \
 743         ib_addr.h       \
 744         ib_user_mad.h   \
 745         ib_user_sa.h    \
 746         ib_user_verbs.h \
 747         ib_verbs.h      \
 748         rdma_cm.h       \
 749         rdma_user_cm.h
 750 
 751 SOL_UVERBSHDRS=         \
 752         sol_uverbs.h    \
 753         sol_uverbs2ucma.h       \
 754         sol_uverbs_comp.h       \
 755         sol_uverbs_hca.h        \
 756         sol_uverbs_qp.h         \
 757         sol_uverbs_event.h
 758 
 759 SOL_UMADHDRS=           \
 760         sol_umad.h
 761 
 762 SOL_UCMAHDRS=           \
 763         sol_ucma.h      \
 764         sol_rdma_user_cm.h
 765 
 766 SOL_OFSHDRS=            \
 767         sol_cma.h       \
 768         sol_ib_cma.h    \
 769         sol_ofs_common.h        \
 770         sol_kverb_impl.h
 771 
 772 TAVORHDRS=              \
 773         tavor_ioctl.h
 774 
 775 HERMONHDRS=             \
 776         hermon_ioctl.h
 777 
 778 MLNXHDRS=               \
 779         mlnx_umap.h
 780 
 781 IDMHDRS=                \
 782         idm.h           \
 783         idm_impl.h      \
 784         idm_so.h        \
 785         idm_text.h      \
 786         idm_transport.h \
 787         idm_conn_sm.h
 788 
 789 ISCSITHDRS=             \
 790         radius_packet.h         \
 791         radius_protocol.h       \
 792         chap.h                  \
 793         isns_protocol.h         \
 794         iscsi_if.h              \
 795         iscsit_common.h
 796 
 797 ISOHDRS=                        \
 798         signal_iso.h
 799 
 800 DERIVED_LVMHDRS=        \
 801         md_mdiox.h              \
 802         md_basic.h              \
 803         mdmed.h                 \
 804         md_mhdx.h               \
 805         mdmn_commd.h
 806 
 807 LVMHDRS=                        \
 808         md_convert.h            \
 809         md_crc.h                \
 810         md_hotspares.h          \
 811         md_mddb.h               \
 812         md_mirror.h             \
 813         md_mirror_shared.h      \
 814         md_names.h              \
 815         md_notify.h             \
 816         md_raid.h               \
 817         md_rename.h             \
 818         md_sp.h                 \
 819         md_stripe.h             \
 820         md_trans.h              \
 821         mdio.h                  \
 822         mdvar.h                 
 823 
 824 ALL_LVMHDRS=                    \
 825         $(LVMHDRS)              \
 826         $(DERIVED_LVMHDRS)
 827 
 828 FMHDRS=                         \
 829         protocol.h              \
 830         util.h
 831 
 832 FMFSHDRS=                       \
 833         zfs.h
 834 
 835 FMIOHDRS=                       \
 836         ddi.h                   \
 837         disk.h                  \
 838         pci.h                   \
 839         scsi.h                  \
 840         sun4upci.h              \
 841         opl_mc_fm.h
 842 
 843 FSHDRS=                         \
 844         autofs.h                \
 845         cachefs_dir.h           \
 846         cachefs_dlog.h          \
 847         cachefs_filegrp.h       \
 848         cachefs_fs.h            \
 849         cachefs_fscache.h       \
 850         cachefs_ioctl.h         \
 851         cachefs_log.h           \
 852         decomp.h                \
 853         dv_node.h               \
 854         sdev_impl.h             \
 855         fifonode.h              \
 856         hsfs_isospec.h          \
 857         hsfs_node.h             \
 858         hsfs_rrip.h             \
 859         hsfs_spec.h             \
 860         hsfs_susp.h             \
 861         lofs_info.h             \
 862         lofs_node.h             \
 863         mntdata.h               \
 864         namenode.h              \
 865         pc_dir.h                \
 866         pc_fs.h                 \
 867         pc_label.h              \
 868         pc_node.h               \
 869         pxfs_ki.h               \
 870         snode.h                 \
 871         swapnode.h              \
 872         tmp.h                   \
 873         tmpnode.h               \
 874         udf_inode.h             \
 875         udf_volume.h            \
 876         ufs_acl.h               \
 877         ufs_bio.h               \
 878         ufs_filio.h             \
 879         ufs_fs.h                \
 880         ufs_fsdir.h             \
 881         ufs_inode.h             \
 882         ufs_lockfs.h            \
 883         ufs_log.h               \
 884         ufs_mount.h             \
 885         ufs_panic.h             \
 886         ufs_prot.h              \
 887         ufs_quota.h             \
 888         ufs_snap.h              \
 889         ufs_trans.h             \
 890         zfs.h                   \
 891         zut.h
 892 
 893 PCMCIAHDRS=             \
 894         pcata.h         \
 895         pcser_conf.h    \
 896         pcser_io.h      \
 897         pcser_reg.h     \
 898         pcser_manuspec.h \
 899         pcser_var.h
 900 
 901 SCSIHDRS=               \
 902         scsi.h          \
 903         scsi_address.h  \
 904         scsi_ctl.h      \
 905         scsi_fm.h       \
 906         scsi_params.h   \
 907         scsi_pkt.h      \
 908         scsi_resource.h \
 909         scsi_types.h    \
 910         scsi_watch.h
 911 
 912 SCSICONFHDRS=           \
 913         autoconf.h      \
 914         device.h
 915 
 916 SCSIGENHDRS=            \
 917         commands.h      \
 918         dad_mode.h      \
 919         inquiry.h       \
 920         message.h       \
 921         mode.h          \
 922         persist.h       \
 923         sense.h         \
 924         sff_frames.h    \
 925         smp_frames.h    \
 926         status.h
 927 
 928 SCSIIMPLHDRS=           \
 929         commands.h      \
 930         inquiry.h       \
 931         mode.h          \
 932         scsi_reset_notify.h \
 933         scsi_sas.h      \
 934         sense.h         \
 935         services.h      \
 936         smp_transport.h \
 937         spc3_types.h    \
 938         status.h        \
 939         transport.h     \
 940         types.h         \
 941         uscsi.h         \
 942         usmp.h
 943 
 944 SCSITARGETSHDRS=        \
 945         ses.h           \
 946         sesio.h         \
 947         sgendef.h       \
 948         stdef.h         \
 949         sddef.h         \
 950         smp.h
 951 
 952 SCSIADHDRS=
 953 
 954 SCSICADHDRS=
 955 
 956 SCSIISCSIHDRS=          \
 957         iscsi_door.h    \
 958         iscsi_if.h
 959 
 960 SCSIVHCIHDRS=           \
 961         scsi_vhci.h     \
 962         mpapi_impl.h    \
 963         mpapi_scsi_vhci.h
 964 
 965 SDCARDHDRS=             \
 966         sda.h           \
 967         sda_impl.h      \
 968         sda_ioctl.h
 969 
 970 FC4HDRS=                        \
 971         fc_transport.h  \
 972         linkapp.h       \
 973         fc.h            \
 974         fcp.h           \
 975         fcal_transport.h \
 976         fcal.h          \
 977         fcal_linkapp.h  \
 978         fcio.h
 979 
 980 FCHDRS=                 \
 981         fc.h            \
 982         fcio.h          \
 983         fc_types.h      \
 984         fc_appif.h
 985 
 986 FCIMPLHDRS=             \
 987         fc_error.h      \
 988         fcph.h
 989 
 990 FCULPHDRS=              \
 991         fcp_util.h      \
 992         fcsm.h
 993 
 994 SATAGENHDRS=            \
 995         sata_hba.h      \
 996         sata_defs.h     \
 997         sata_cfgadm.h
 998 
 999 SYSEVENTHDRS=           \
1000         ap_driver.h     \
1001         dev.h           \
1002         domain.h        \
1003         dr.h            \
1004         env.h           \
1005         eventdefs.h     \
1006         ipmp.h          \
1007         pwrctl.h        \
1008         svm.h           \
1009         vrrp.h
1010 
1011 CONTRACTHDRS=           \
1012         process.h       \
1013         process_impl.h  \
1014         device.h        \
1015         device_impl.h
1016 
1017 USBHDRS=        \
1018         usba.h  \
1019         usbai.h
1020 
1021 UWBHDRS=        \
1022         uwb.h   \
1023         uwbai.h
1024 
1025 UWBAHDRS=       \
1026         uwba.h
1027 
1028 USBAUDHDRS=           \
1029         usb_audio.h
1030 
1031 USBHUBDHDRS=            \
1032         hub.h           \
1033         hubd_impl.h
1034 
1035 USBHIDHDRS=             \
1036         hid.h
1037 
1038 USBHWARCHDRS=           \
1039         hwarc.h
1040 
1041 USBMSHDRS=              \
1042         usb_bulkonly.h  \
1043         usb_cbi.h
1044 
1045 USBPRNHDRS=           \
1046         usb_printer.h
1047 
1048 USBCDCHDRS=             \
1049         usb_cdc.h
1050 
1051 USBVIDHDRS=           \
1052         usbvc.h
1053 
1054 USBWCMHDRS=             \
1055         usbwcm.h
1056 
1057 UGENHDRS=           \
1058         usb_ugen.h
1059 
1060 HOTPLUGHDRS=    \
1061         hpcsvc.h        \
1062         hpctrl.h
1063 
1064 HOTPLUGPCIHDRS= \
1065         pcicfg.h        \
1066         pcihp.h
1067 
1068 RSMHDRS= \
1069         rsm.h   \
1070         rsm_common.h    \
1071         rsmapi_common.h \
1072         rsmpi.h \
1073         rsmpi_driver.h  \
1074         rsmka_path_int.h
1075 
1076 TSOLHDRS=               \
1077         label.h         \
1078         label_macro.h   \
1079         priv.h          \
1080         tndb.h          \
1081         tsyscall.h
1082 
1083 I1394HDRS=              \
1084         cmd1394.h       \
1085         id1394.h        \
1086         ieee1212.h      \
1087         ieee1394.h      \
1088         ixl1394.h       \
1089         s1394_impl.h    \
1090         t1394.h
1091 
1092 # "cmdk" headers used on sparc
1093 SDKTPHDRS=              \
1094         dadkio.h        \
1095         fdisk.h
1096 
1097 # "cmdk" headers used on i386
1098 DKTPHDRS=               \
1099         altsctr.h       \
1100         bbh.h           \
1101         cm.h            \
1102         cmdev.h         \
1103         cmdk.h          \
1104         cmpkt.h         \
1105         controller.h    \
1106         dadev.h         \
1107         dadk.h          \
1108         dadkio.h        \
1109         fctypes.h       \
1110         fdisk.h         \
1111         flowctrl.h      \
1112         gda.h           \
1113         quetypes.h      \
1114         queue.h         \
1115         tgcom.h         \
1116         tgdk.h
1117 
1118 # "pc" header files used on i386
1119 PCHDRS=                 \
1120         avintr.h        \
1121         dma_engine.h    \
1122         i8272A.h        \
1123         pcic_reg.h      \
1124         pcic_var.h      \
1125         pic.h           \
1126         pit.h           \
1127         rtc.h
1128 
1129 NXGEHDRS=                       \
1130         nxge.h                  \
1131         nxge_common.h           \
1132         nxge_common_impl.h      \
1133         nxge_defs.h             \
1134         nxge_hw.h               \
1135         nxge_impl.h             \
1136         nxge_ipp.h              \
1137         nxge_ipp_hw.h           \
1138         nxge_mac.h              \
1139         nxge_mac_hw.h           \
1140         nxge_fflp.h             \
1141         nxge_fflp_hw.h          \
1142         nxge_mii.h              \
1143         nxge_rxdma.h            \
1144         nxge_rxdma_hw.h         \
1145         nxge_txc.h              \
1146         nxge_txc_hw.h           \
1147         nxge_txdma.h            \
1148         nxge_txdma_hw.h         \
1149         nxge_virtual.h          \
1150         nxge_espc.h
1151 
1152 include Makefile.syshdrs
1153 
1154 dcam/%.check:   dcam/%.h
1155         $(DOT_H_CHECK)
1156 
1157 CHECKHDRS=                                              \
1158         $($(MACH)_HDRS:%.h=%.check)                     \
1159         $(AUDIOHDRS:%.h=audio/%.check)                  \
1160         $(AVHDRS:%.h=av/%.check)                        \
1161         $(BSCHDRS:%.h=%.check)                          \
1162         $(CHKHDRS:%.h=%.check)                          \
1163         $(CPUDRVHDRS:%.h=%.check)                       \
1164         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1165         $(DCAMHDRS:%.h=dcam/%.check)                    \
1166         $(FC4HDRS:%.h=fc4/%.check)                      \
1167         $(FCHDRS:%.h=fibre-channel/%.check)             \
1168         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1169         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1170         $(IBHDRS:%.h=ib/%.check)                        \
1171         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1172         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1173         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1174         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1175         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1176         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1177         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1178         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1179         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1180         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1181         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1182         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1183         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1184         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1185         $(IDMHDRS:%.h=idm/%.check)                      \
1186         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1187         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1188         $(ISOHDRS:%.h=iso/%.check)                      \
1189         $(FMHDRS:%.h=fm/%.check)                        \
1190         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1191         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1192         $(FSHDRS:%.h=fs/%.check)                        \
1193         $(LVMHDRS:%.h=lvm/%.check)                      \
1194         $(PCMCIAHDRS:%.h=pcmcia/%.check)                \
1195         $(SCSIHDRS:%.h=scsi/%.check)                    \
1196         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1197         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1198         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1199         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1200         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1201         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1202         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1203         $(SATAGENHDRS:%.h=sata/%.check)                 \
1204         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1205         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1206         $(CONTRACTHDRS:%.h=contract/%.check)            \
1207         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1208         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1209         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1210         $(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)   \
1211         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1212         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1213         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1214         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1215         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1216         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1217         $(USBHDRS:%.h=usb/%.check)                      \
1218         $(UWBHDRS:%.h=uwb/%.check)                      \
1219         $(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1220         $(I1394HDRS:%.h=1394/%.check)                   \
1221         $(RSMHDRS:%.h=rsm/%.check)                      \
1222         $(TSOLHDRS:%.h=tsol/%.check)                    \
1223         $(NXGEHDRS:%.h=nxge/%.check)
1224 
1225 
1226 .KEEP_STATE:
1227 
1228 .PARALLEL:                      \
1229         $(CHECKHDRS)            \
1230         $(ROOTHDRS)             \
1231         $(ROOTAUDHDRS)          \
1232         $(ROOTAVHDRS)           \
1233         $(ROOTCRYPTOHDRS)       \
1234         $(ROOTDCAMHDRS)         \
1235         $(ROOTISOHDRS)          \
1236         $(ROOTIDMHDRS)          \
1237         $(ROOTISCSIHDRS)        \
1238         $(ROOTISCSITHDRS)       \
1239         $(ROOTFC4HDRS)          \
1240         $(ROOTFCHDRS)           \
1241         $(ROOTFCIMPLHDRS)       \
1242         $(ROOTFCULPHDRS)        \
1243         $(ROOTFMHDRS)           \
1244         $(ROOTFMIOHDRS)         \
1245         $(ROOTFMFSHDRS)         \
1246         $(ROOTFSHDRS)           \
1247         $(ROOTIBDHDRS)          \
1248         $(ROOTIBHDRS)           \
1249         $(ROOTIBTLHDRS)         \
1250         $(ROOTIBTLIMPLHDRS)     \
1251         $(ROOTIBNEXHDRS)        \
1252         $(ROOTIBMGTHDRS)        \
1253         $(ROOTIBMFHDRS)         \
1254         $(ROOTOFHDRS)           \
1255         $(ROOTRDMAHDRS)         \
1256         $(ROOTSOL_OFSHDRS)      \
1257         $(ROOTSOL_UMADHDRS)     \
1258         $(ROOTSOL_UVERBSHDRS)   \
1259         $(ROOTSOL_UCMAHDRS)     \
1260         $(ROOTTAVORHDRS)        \
1261         $(ROOTHERMONHDRS)       \
1262         $(ROOTMLNXHDRS)         \
1263         $(ROOTLVMHDRS)          \
1264         $(ROOTPCMCIAHDRS)       \
1265         $(ROOTSCSIHDRS)         \
1266         $(ROOTSCSIADHDRS)       \
1267         $(ROOTSCSICONFHDRS)     \
1268         $(ROOTSCSIISCSIHDRS)    \
1269         $(ROOTSCSIGENHDRS)      \
1270         $(ROOTSCSIIMPLHDRS)     \
1271         $(ROOTSCSIVHCIHDRS)     \
1272         $(ROOTSDCARDHDRS)       \
1273         $(ROOTSYSEVENTHDRS)     \
1274         $(ROOTCONTRACTHDRS)     \
1275         $(ROOTUSBHDRS)          \
1276         $(ROOTUWBHDRS)          \
1277         $(ROOTUWBAHDRS)         \
1278         $(ROOTUSBAUDHDRS)       \
1279         $(ROOTUSBHUBDHDRS)      \
1280         $(ROOTUSBHIDHDRS)       \
1281         $(ROOTUSBHRCHDRS)       \
1282         $(ROOTUSBMSHDRS)        \
1283         $(ROOTUSBPRNHDRS)       \
1284         $(ROOTUSBCDCHDRS)       \
1285         $(ROOTUSBVIDHDRS)       \
1286         $(ROOTUSBWCMHDRS)       \
1287         $(ROOTUGENHDRS)         \
1288         $(ROOT1394HDRS)         \
1289         $(ROOTHOTPLUGHDRS)      \
1290         $(ROOTHOTPLUGPCIHDRS)   \
1291         $(ROOTRSMHDRS)          \
1292         $(ROOTTSOLHDRS)         \
1293         $($(MACH)_ROOTHDRS)
1294 
1295 
1296 install_h:                      \
1297         $(ROOTDIRS)             \
1298         LVMDERIVED_H            \
1299         .WAIT                   \
1300         $(ROOTHDRS)             \
1301         $(ROOTAUDHDRS)          \
1302         $(ROOTAVHDRS)           \
1303         $(ROOTCRYPTOHDRS)       \
1304         $(ROOTDCAMHDRS)         \
1305         $(ROOTISOHDRS)          \
1306         $(ROOTIDMHDRS)          \
1307         $(ROOTISCSIHDRS)        \
1308         $(ROOTISCSITHDRS)       \
1309         $(ROOTFC4HDRS)          \
1310         $(ROOTFCHDRS)           \
1311         $(ROOTFCIMPLHDRS)       \
1312         $(ROOTFCULPHDRS)        \
1313         $(ROOTFMHDRS)           \
1314         $(ROOTFMFSHDRS)         \
1315         $(ROOTFMIOHDRS)         \
1316         $(ROOTFSHDRS)           \
1317         $(ROOTIBDHDRS)          \
1318         $(ROOTIBHDRS)           \
1319         $(ROOTIBTLHDRS)         \
1320         $(ROOTIBTLIMPLHDRS)     \
1321         $(ROOTIBNEXHDRS)        \
1322         $(ROOTIBMGTHDRS)        \
1323         $(ROOTIBMFHDRS)         \
1324         $(ROOTOFHDRS)           \
1325         $(ROOTRDMAHDRS)         \
1326         $(ROOTSOL_OFSHDRS)      \
1327         $(ROOTSOL_UMADHDRS)     \
1328         $(ROOTSOL_UVERBSHDRS)   \
1329         $(ROOTSOL_UCMAHDRS)     \
1330         $(ROOTTAVORHDRS)        \
1331         $(ROOTHERMONHDRS)       \
1332         $(ROOTMLNXHDRS)         \
1333         $(ROOTLVMHDRS)          \
1334         $(ROOTPCMCIAHDRS)       \
1335         $(ROOTSCSIHDRS)         \
1336         $(ROOTSCSIADHDRS)       \
1337         $(ROOTSCSIISCSIHDRS)    \
1338         $(ROOTSCSICONFHDRS)     \
1339         $(ROOTSCSIGENHDRS)      \
1340         $(ROOTSCSIIMPLHDRS)     \
1341         $(ROOTSCSIVHCIHDRS)     \
1342         $(ROOTSDCARDHDRS)       \
1343         $(ROOTSYSEVENTHDRS)     \
1344         $(ROOTCONTRACTHDRS)     \
1345         $(ROOTUWBHDRS)          \
1346         $(ROOTUWBAHDRS)         \
1347         $(ROOTUSBHDRS)          \
1348         $(ROOTUSBAUDHDRS)       \
1349         $(ROOTUSBHUBDHDRS)      \
1350         $(ROOTUSBHIDHDRS)       \
1351         $(ROOTUSBHRCHDRS)       \
1352         $(ROOTUSBMSHDRS)        \
1353         $(ROOTUSBPRNHDRS)       \
1354         $(ROOTUSBCDCHDRS)       \
1355         $(ROOTUSBVIDHDRS)       \
1356         $(ROOTUSBWCMHDRS)       \
1357         $(ROOTUGENHDRS)         \
1358         $(ROOT1394HDRS)         \
1359         $(ROOTHOTPLUGHDRS)      \
1360         $(ROOTHOTPLUGPCIHDRS)   \
1361         $(ROOTRSMHDRS)          \
1362         $(ROOTTSOLHDRS)         \
1363         $($(MACH)_ROOTHDRS)
1364 
1365 all_h: $(GENHDRS)
1366 
1367 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1368         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1369 
1370 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1371         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1372 
1373 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1374         $(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1375 
1376 LVMDERIVED_H:
1377         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1378 
1379 clean:
1380         $(RM) $(GENHDRS)
1381 
1382 clobber:        clean
1383 
1384 check:  $(CHECKHDRS)
1385 
1386 FRC:
1387 
1388 # EXPORT DELETE START
1389 EXPORT_SRC:
1390         $(RM) wanboot_impl.h+ Makefile+
1391         sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1392                 < wanboot_impl.h > wanboot_impl.h+
1393         $(MV) wanboot_impl.h+ wanboot_impl.h
1394         sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1395                 < Makefile > Makefile+
1396         $(RM) Makefile
1397         $(MV) Makefile+ Makefile
1398         $(CHMOD) 444 Makefile wanboot_impl.h
1399 # EXPORT DELETE END